mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
ocamlPackages.ocamlnet: disable for OCaml ≥ 5.0
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user