4a3aa3d7d8
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
29 lines
902 B
Nix
29 lines
902 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, seq, stdlib-shims }:
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.05"
|
|
then throw "fmt is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.8.9";
|
|
pname = "ocaml${ocaml.version}-fmt";
|
|
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
|
|
sha256 = "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
buildInputs = [ findlib topkg cmdliner ];
|
|
propagatedBuildInputs = [ seq stdlib-shims ];
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://erratique.ch/software/fmt";
|
|
license = licenses.isc;
|
|
description = "OCaml Format pretty-printer combinators";
|
|
inherit (ocaml.meta) platforms;
|
|
maintainers = [ maintainers.vbgl ];
|
|
};
|
|
}
|