diff options
Diffstat (limited to 'pkgs/development/tools/ocaml/utop/default.nix')
-rw-r--r-- | pkgs/development/tools/ocaml/utop/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix index 9e394751761a..0f73f4c54afc 100644 --- a/pkgs/development/tools/ocaml/utop/default.nix +++ b/pkgs/development/tools/ocaml/utop/default.nix @@ -2,6 +2,10 @@ , lambdaTerm, ocaml_lwt, camomile, zed, cppo, ppx_tools, makeWrapper }: +if !stdenv.lib.versionAtLeast ocaml.version "4.02" +then throw "utop is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { version = "1.19.3"; name = "utop-${version}"; |