Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
944 B · 47 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner,}:
if lib.versionOlder ocaml.version "4.08" then throw "fmt is not available for OCaml ${ocaml.version}"else
stdenv.mkDerivation rec { version = "0.10.0"; pname = "ocaml${ocaml.version}-fmt";
src = fetchurl { url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz"; sha256 = "sha256-eDgec+FW2F85LzfkKFqsmYd3MWWZsBIXMhlXT3xdKZc="; };
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; buildInputs = [ cmdliner topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = with lib; { homepage = "https://erratique.ch/software/fmt"; license = licenses.isc; description = "OCaml Format pretty-printer combinators"; inherit (ocaml.meta) platforms; maintainers = [ maintainers.vbgl ]; }; }