12 if lib.versionOlder ocaml.version "4.08" then
13 throw "fmt is not available for OCaml ${ocaml.version}"
16 stdenv.mkDerivation rec {
18 pname = "ocaml${ocaml.version}-fmt";
21 url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
22 sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE=";
38 inherit (topkg) buildPhase installPhase;
41 homepage = "https://erratique.ch/software/fmt";
42 license = licenses.isc;
43 description = "OCaml Format pretty-printer combinators";
44 inherit (ocaml.meta) platforms;
45 maintainers = [ maintainers.vbgl ];