2022-12-17 10:02:37 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml
|
|
|
|
, dune-configurator
|
|
|
|
, seq
|
|
|
|
, qcheck, ounit2
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
version = "1.0";
|
|
|
|
pname = "gen";
|
|
|
|
minimalOCamlVersion = "4.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "gen";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-YWoVcl2TQoMIgU1LoKL16ia31zJjwAMwuphtSXnhtvw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ seq ];
|
|
|
|
checkInputs = [ qcheck ounit2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/c-cube/gen";
|
|
|
|
description = "Simple, efficient iterators for OCaml";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|