ocamlPackages.gen: 0.5 → 1.0
This commit is contained in:
parent
5b9b93b9be
commit
543070eafe
@ -1,31 +1,30 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml
|
||||||
|
, dune-configurator
|
||||||
|
, seq
|
||||||
|
, qcheck, ounit2
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
version = "0.5";
|
version = "1.0";
|
||||||
pname = "ocaml${ocaml.version}-gen";
|
pname = "gen";
|
||||||
|
minimalOCamlVersion = "4.03";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "c-cube";
|
owner = "c-cube";
|
||||||
repo = "gen";
|
repo = "gen";
|
||||||
rev = version;
|
rev = "v${version}";
|
||||||
sha256 = "14b8vg914nb0yp1hgxzm29bg692m0gqncjj43b599s98s1cwl92h";
|
hash = "sha256-YWoVcl2TQoMIgU1LoKL16ia31zJjwAMwuphtSXnhtvw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
buildInputs = [ dune-configurator ];
|
||||||
buildInputs = lib.optionals doCheck [ qtest ounit ];
|
propagatedBuildInputs = [ seq ];
|
||||||
strictDeps = true;
|
checkInputs = [ qcheck ounit2 ];
|
||||||
|
|
||||||
configureFlags = lib.optional doCheck "--enable-tests";
|
|
||||||
|
|
||||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||||
checkTarget = "test";
|
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
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;
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user