nixpkgs/pkgs/development/ocaml-modules/fmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
842 B
Nix
Raw Normal View History

2022-08-23 06:04:50 +00:00
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
2022-08-23 06:04:50 +00:00
if lib.versionOlder ocaml.version "4.08"
2020-04-09 16:58:36 +00:00
then throw "fmt is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
2022-08-23 06:04:50 +00:00
version = "0.9.0";
2020-04-09 16:58:36 +00:00
pname = "ocaml${ocaml.version}-fmt";
src = fetchurl {
2020-04-09 16:58:36 +00:00
url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
2022-08-23 06:04:50 +00:00
sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ cmdliner topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = with lib; {
homepage = "https://erratique.ch/software/fmt";
2020-10-08 01:19:05 +00:00
license = licenses.isc;
description = "OCaml Format pretty-printer combinators";
inherit (ocaml.meta) platforms;
2020-10-08 01:19:05 +00:00
maintainers = [ maintainers.vbgl ];
};
}