summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-10-31 06:31:51 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-11-07 04:50:31 +0100
commit2157c909d220c4a4314c3d4f872a405700a053b0 (patch)
tree33491756a5f6bff7c19c395cd2a507b55d7e0af5 /pkgs/development/tools/ocaml
parent573366e26755c0aaa711ed926c946a351b905a17 (diff)
ocamlPackages.ocp-build: disable for OCaml ≥ 5.0
Diffstat (limited to 'pkgs/development/tools/ocaml')
-rw-r--r--pkgs/development/tools/ocaml/ocp-build/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/ocp-build/default.nix b/pkgs/development/tools/ocaml/ocp-build/default.nix
index de26536eb1c5c..33f9a123b744b 100644
--- a/pkgs/development/tools/ocaml/ocp-build/default.nix
+++ b/pkgs/development/tools/ocaml/ocp-build/default.nix
@@ -1,5 +1,8 @@
 { lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ncurses, cmdliner_1_0, re }:
 
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+  "ocp-build is not available for OCaml ${ocaml.version}"
+
 stdenv.mkDerivation rec {
   pname = "ocaml${ocaml.version}-ocp-build";
   version = "1.99.21";