summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-04-21 09:47:16 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2023-04-21 10:41:32 +0200
commit34122f7321d2abe79b6ca1086b02354495888563 (patch)
tree754f06adb64a9492e0ae2089ea9a14d9461b10c3 /pkgs/development/tools/ocaml
parentfaaa461aa8313a529aeb90adec384c80305c6704 (diff)
ocamlPackages.ocamlmod: disable for OCaml ≥ 5.0
Diffstat (limited to 'pkgs/development/tools/ocaml')
-rw-r--r--pkgs/development/tools/ocaml/ocamlmod/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/ocamlmod/default.nix b/pkgs/development/tools/ocaml/ocamlmod/default.nix
index 5b4f7e8e44078..ee287a92388f7 100644
--- a/pkgs/development/tools/ocaml/ocamlmod/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlmod/default.nix
@@ -5,6 +5,9 @@ let
   doCheck = lib.versionAtLeast ocaml.version "4.04";
 in
 
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+  "ocamlmod is not available for OCaml ≥ 5.0"
+
 stdenv.mkDerivation {
   pname = "ocamlmod";
   version = "0.0.9";