ocamlPackages.cmdliner_1_1: disable for OCaml < 4.08
This commit is contained in:
parent
ab83b52478
commit
a06e854f23
|
@ -1,5 +1,8 @@
|
||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
||||||
|
|
||||||
|
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
|
||||||
|
"cmdliner 1.1 is not available for OCaml ${ocaml.version}"
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cmdliner";
|
pname = "cmdliner";
|
||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
|
@ -9,7 +12,6 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-oa6Hw6eZQO+NHdWfdED3dtHckm4BmEbdMiAuRkYntfs=";
|
sha256 = "sha256-oa6Hw6eZQO+NHdWfdED3dtHckm4BmEbdMiAuRkYntfs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
minimalOCamlVersion = "4.08";
|
|
||||||
nativeBuildInputs = [ ocaml ];
|
nativeBuildInputs = [ ocaml ];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
Loading…
Reference in a new issue