ocamlPackages.ocamlnet: disable for OCaml ≥ 5.0
This commit is contained in:
parent
b4b8b7b0d7
commit
673cd10e59
|
@ -2,9 +2,8 @@
|
||||||
, gnutls, nettle
|
, gnutls, nettle
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if lib.versionOlder ocaml.version "4.02"
|
lib.throwIf (lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0")
|
||||||
then throw "ocamlnet is not available for OCaml ${ocaml.version}"
|
"ocamlnet is not available for OCaml ${ocaml.version}"
|
||||||
else
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ocaml${ocaml.version}-ocamlnet";
|
pname = "ocaml${ocaml.version}-ocamlnet";
|
||||||
|
|
Loading…
Reference in a new issue