diff --git a/pkgs/development/ocaml-modules/ulex/0.8/default.nix b/pkgs/development/ocaml-modules/ulex/0.8/default.nix index 288e9a6933e7..6c0cf9214f29 100644 --- a/pkgs/development/ocaml-modules/ulex/0.8/default.nix +++ b/pkgs/development/ocaml-modules/ulex/0.8/default.nix @@ -4,6 +4,10 @@ let pname = "ulex"; in +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "ulex-0.8 is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { name = "${pname}-${version}"; version = "0.8";