@@ -11,9 +11,10 @@ stdenv.mkDerivation rec {
1111
1212 buildInputs = [ ocaml findlib ocamlbuild ounit ];
1313
14− configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
14+ configurePhase = "ocaml setup.ml -configure --prefix $out"
15+ + stdenv.lib.optionalString doCheck " --enable-tests";
1516 buildPhase = "ocaml setup.ml -build";
16− doCheck = true;
17+ doCheck = !stdenv.lib.versionAtLeast ocaml.version "4.06";
1718 checkPhase = "ocaml setup.ml -test";
1819 installPhase = "ocaml setup.ml -install";
1920