ocamlPackages.ocamlnet: disable for OCaml ≥ 5.0

This commit is contained in:
Vincent Laporte
2022-12-29 06:18:35 +01:00
parent 5f5b2ae7f9
commit 97c07ad23b

View File

@@ -2,9 +2,8 @@
, gnutls, nettle
}:
if lib.versionOlder ocaml.version "4.02"
then throw "ocamlnet is not available for OCaml ${ocaml.version}"
else
lib.throwIf (lib.versionOlder ocaml.version "4.02" || lib.versionAtLeast ocaml.version "5.0")
"ocamlnet is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-ocamlnet";