about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-11-29 19:03:09 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-11-29 20:46:24 +0000
commit191f03f02edb9cd9c4032a7b4369f153bc9801d0 (patch)
treef03d8dae6edbbeeb12d84e1af4937a9e2c1a59b7
parenta125946bc1732cd26c53f9e1b13608ae043591df (diff)
downloadnixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar.gz
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar.bz2
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar.lz
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar.xz
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.tar.zst
nixlib-191f03f02edb9cd9c4032a7b4369f153bc9801d0.zip
ocamlPackages.re: disable tests for OCaml ≥ 4.06
-rw-r--r--pkgs/development/ocaml-modules/re/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/re/default.nix b/pkgs/development/ocaml-modules/re/default.nix
index 3be49072eb37..861ac8b3bc81 100644
--- a/pkgs/development/ocaml-modules/re/default.nix
+++ b/pkgs/development/ocaml-modules/re/default.nix
@@ -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";