1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
3 if lib.versionOlder ocaml.version "4.08"
4 then throw "fmt is not available for OCaml ${ocaml.version}"
7 stdenv.mkDerivation rec {
9 pname = "ocaml${ocaml.version}-fmt";
12 url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
13 sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE=";
16 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
17 buildInputs = [ cmdliner topkg ];
21 inherit (topkg) buildPhase installPhase;
24 homepage = "https://erratique.ch/software/fmt";
25 license = licenses.isc;
26 description = "OCaml Format pretty-printer combinators";
27 inherit (ocaml.meta) platforms;
28 maintainers = [ maintainers.vbgl ];