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