From 191f03f02edb9cd9c4032a7b4369f153bc9801d0 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 29 Nov 2017 19:03:09 +0000 Subject: [PATCH] =?UTF-8?q?ocamlPackages.re:=20disable=20tests=20for=20OCa?= =?UTF-8?q?ml=20=E2=89=A5=204.06?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/re/default.nix | 5 +++-- 1 file 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";