diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-08 11:31:11 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-08 12:22:55 +0200 |
commit | 9d526675368dd51134151b6cc3fd0e94a5b5c2bc (patch) | |
tree | cff398701490f3bd470aa09c0ab0692472db05da /pkgs/development/ocaml-modules | |
parent | ec359a828679aff5789f551bb95db9d206fc4a1b (diff) |
ocamlPackages.qtest: requires OCaml ≥ 4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/qtest/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix index 6d5f8ecc6833b..4d3ab0ddb4f2a 100644 --- a/pkgs/development/ocaml-modules/qtest/default.nix +++ b/pkgs/development/ocaml-modules/qtest/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit }: +if !stdenv.lib.versionAtLeast ocaml.version "4" +then throw "qtest is not available for OCaml ${ocaml.version}" +else + let version = "2.2"; in stdenv.mkDerivation { |