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 {
|
||||
version = "0.5";
|
||||
pname = "ocaml${ocaml.version}-gen";
|
||||
buildDunePackage rec {
|
||||
version = "1.0";
|
||||
pname = "gen";
|
||||
minimalOCamlVersion = "4.03";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "c-cube";
|
||||
repo = "gen";
|
||||
rev = version;
|
||||
sha256 = "14b8vg914nb0yp1hgxzm29bg692m0gqncjj43b599s98s1cwl92h";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-YWoVcl2TQoMIgU1LoKL16ia31zJjwAMwuphtSXnhtvw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||
buildInputs = lib.optionals doCheck [ qtest ounit ];
|
||||
strictDeps = true;
|
||||
|
||||
configureFlags = lib.optional doCheck "--enable-tests";
|
||||
buildInputs = [ dune-configurator ];
|
||||
propagatedBuildInputs = [ seq ];
|
||||
checkInputs = [ qcheck ounit2 ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
checkTarget = "test";
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/c-cube/gen";
|
||||
description = "Simple, efficient iterators for OCaml";
|
||||
license = lib.licenses.bsd3;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user