summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/base/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/base/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/base/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/base/default.nix b/pkgs/development/ocaml-modules/base/default.nix
index 4c92c7f1ca1b..f7627567f9c1 100644
--- a/pkgs/development/ocaml-modules/base/default.nix
+++ b/pkgs/development/ocaml-modules/base/default.nix
@@ -1,5 +1,8 @@
 { stdenv, fetchurl, ocaml, jbuilder, findlib }:
 
+if !stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "base is not available for OCaml ${ocaml.version}" else
+
 stdenv.mkDerivation {
   name = "ocaml${ocaml.version}-base-0.9.0";