nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 cmdliner,
10}:
11
12stdenv.mkDerivation rec {
13 version = "0.11.0";
14 pname = "ocaml${ocaml.version}-fmt";
15
16 src = fetchurl {
17 url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
18 sha256 = "sha256-hXz9R6VLUkKc2bPiZl5EFzzRvTtDW+znFy+YStU3ahs=";
19 };
20
21 nativeBuildInputs = [
22 ocaml
23 findlib
24 ocamlbuild
25 topkg
26 ];
27 buildInputs = [
28 cmdliner
29 topkg
30 ];
31
32 strictDeps = true;
33
34 inherit (topkg) buildPhase installPhase;
35
36 meta = {
37 homepage = "https://erratique.ch/software/fmt";
38 license = lib.licenses.isc;
39 description = "OCaml Format pretty-printer combinators";
40 inherit (ocaml.meta) platforms;
41 maintainers = [ lib.maintainers.vbgl ];
42 broken = lib.versionOlder ocaml.version "4.08";
43 };
44}