a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
30 lines
672 B
Nix
30 lines
672 B
Nix
{ lib, buildDunePackage, fetchFromGitHub, ocaml
|
|
, dune-configurator
|
|
, seq
|
|
, qcheck, ounit2
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
version = "1.0";
|
|
pname = "gen";
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-cube";
|
|
repo = "gen";
|
|
rev = "v${version}";
|
|
hash = "sha256-YWoVcl2TQoMIgU1LoKL16ia31zJjwAMwuphtSXnhtvw=";
|
|
};
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ seq ];
|
|
checkInputs = [ qcheck ounit2 ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/c-cube/gen";
|
|
description = "Simple, efficient iterators for OCaml";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|