8 assert (lib.versionAtLeast ocaml.version "4.03");
10 stdenv.mkDerivation rec {
15 url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz";
16 sha256 = "1h04q0zkasd0mw64ggh4y58lgzkhg6yhzy60lab8k8zq9ba96ajw";
19 nativeBuildInputs = [ ocaml ];
21 makeFlags = [ "PREFIX=$(out)" ];
22 installTargets = "install install-doc";
24 "LIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/${pname}"
25 "DOCDIR=$(out)/share/doc/${pname}"
28 mv $out/lib/ocaml/${ocaml.version}/site-lib/${pname}/{opam,${pname}.opam}
32 homepage = "https://erratique.ch/software/cmdliner";
33 description = "OCaml module for the declarative definition of command line interfaces";
34 license = licenses.isc;
35 inherit (ocaml.meta) platforms;
36 maintainers = [ maintainers.vbgl ];