3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.re: disable tests for OCaml ≥ 4.06

This commit is contained in:
Vincent Laporte 2017-11-29 19:03:09 +00:00
parent a125946bc1
commit 191f03f02e
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -11,9 +11,10 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib ocamlbuild ounit ];
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
configurePhase = "ocaml setup.ml -configure --prefix $out"
+ stdenv.lib.optionalString doCheck " --enable-tests";
buildPhase = "ocaml setup.ml -build";
doCheck = true;
doCheck = !stdenv.lib.versionAtLeast ocaml.version "4.06";
checkPhase = "ocaml setup.ml -test";
installPhase = "ocaml setup.ml -install";