diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix index 6d5f8ecc683..4d3ab0ddb4f 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 {