ocamlPackages.qtest: requires OCaml ≥ 4

This commit is contained in:
Vincent Laporte 2017-07-08 11:31:11 +02:00
parent ec359a8286
commit 9d52667536

View File

@ -1,5 +1,9 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit }: { 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 let version = "2.2"; in
stdenv.mkDerivation { stdenv.mkDerivation {