about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-12-29 06:18:35 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-01-05 06:31:54 +0100
commit673cd10e59b098d12c19f3a696a1166acd551c1a (patch)
tree8bcb829e799dd04cffa95bd2ba74e0a148521fc2 /pkgs/development
parentb4b8b7b0d763b481273a3e94f60dbea427d89d25 (diff)
ocamlPackages.ocamlnet: disable for OCaml ≥ 5.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/ocaml-modules/ocamlnet/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/ocamlnet/default.nix b/pkgs/development/ocaml-modules/ocamlnet/default.nix
index 22cd84da1f865..c650155ff3822 100644
--- a/pkgs/development/ocaml-modules/ocamlnet/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlnet/default.nix
@@ -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";