1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
3 assert (lib.versionAtLeast ocaml.version "4.03");
5 stdenv.mkDerivation rec {
10 url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz";
11 sha256 = "1h04q0zkasd0mw64ggh4y58lgzkhg6yhzy60lab8k8zq9ba96ajw";
14 nativeBuildInputs = [ ocaml ];
16 makeFlags = [ "PREFIX=$(out)" ];
17 installTargets = "install install-doc";
19 "LIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/${pname}"
20 "DOCDIR=$(out)/share/doc/${pname}"
23 mv $out/lib/ocaml/${ocaml.version}/site-lib/${pname}/{opam,${pname}.opam}
27 homepage = "https://erratique.ch/software/cmdliner";
28 description = "An OCaml module for the declarative definition of command line interfaces";
29 license = licenses.isc;
30 inherit (ocaml.meta) platforms;
31 maintainers = [ maintainers.vbgl ];