1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
7 assert lib.versionAtLeast ocaml.version "4.01.0";
10 if lib.versionAtLeast ocaml.version "4.03" then {
12 sha256 = "1h04q0zkasd0mw64ggh4y58lgzkhg6yhzy60lab8k8zq9ba96ajw";
15 sha256 = "18jqphjiifljlh9jg8zpl6310p3iwyaqphdkmf89acyaix0s4kj1";
19 stdenv.mkDerivation rec {
20 name = "ocaml${ocaml.version}-${pname}-${version}";
21 inherit (param) version;
24 url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz";
25 inherit (param) sha256;
28 nativeBuildInputs = [ ocaml ocamlbuild findlib ];
29 buildInputs = [ topkg ];
30 propagatedBuildInputs = [ result ];
32 inherit (topkg) buildPhase installPhase;
35 homepage = "https://erratique.ch/software/cmdliner";
36 description = "An OCaml module for the declarative definition of command line interfaces";
37 license = licenses.bsd3;
38 platforms = ocaml.meta.platforms or [];
39 maintainers = [ maintainers.vbgl ];