mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 12:38:41 +03:00
ocamlPackages.gen: disable tests with OCaml < 4.08
This commit is contained in:
parent
e6654828b8
commit
bb7692db80
@ -1,9 +1,8 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
||||||
|
|
||||||
let version = "0.5"; in
|
stdenv.mkDerivation rec {
|
||||||
|
version = "0.5";
|
||||||
stdenv.mkDerivation {
|
pname = "ocaml${ocaml.version}-gen";
|
||||||
name = "ocaml${ocaml.version}-gen-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "c-cube";
|
owner = "c-cube";
|
||||||
@ -13,14 +12,12 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
buildInputs = [ qtest ounit ];
|
buildInputs = lib.optionals doCheck [ qtest ounit ];
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = lib.optional doCheck "--enable-tests";
|
||||||
"--enable-tests"
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
@ -29,6 +26,6 @@ stdenv.mkDerivation {
|
|||||||
homepage = "https://github.com/c-cube/gen";
|
homepage = "https://github.com/c-cube/gen";
|
||||||
description = "Simple, efficient iterators for OCaml";
|
description = "Simple, efficient iterators for OCaml";
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
platforms = ocaml.meta.platforms or [];
|
inherit (ocaml.meta) platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user