diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/ojquery/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/ojquery/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ojquery/default.nix b/pkgs/development/ocaml-modules/ojquery/default.nix index 2d697a285fd3..8cf5819c9002 100644 --- a/pkgs/development/ocaml-modules/ojquery/default.nix +++ b/pkgs/development/ocaml-modules/ojquery/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchgit, ocaml, findlib, ocamlbuild, js_of_ocaml, js_of_ocaml-camlp4, camlp4, lwt3, react }: +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "ojquery is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { version = "0.1"; name = "ocaml-ojquery-${version}"; |