diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/gen/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/gen/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/gen/default.nix b/nixpkgs/pkgs/development/ocaml-modules/gen/default.nix new file mode 100644 index 000000000000..86dbc61f6faf --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/gen/default.nix @@ -0,0 +1,29 @@ +{ lib, buildDunePackage, fetchFromGitHub, ocaml +, seq +, qcheck, ounit2 +}: + +buildDunePackage rec { + version = "1.1"; + pname = "gen"; + minimalOCamlVersion = "4.03"; + duneVersion = "3"; + + src = fetchFromGitHub { + owner = "c-cube"; + repo = "gen"; + rev = "v${version}"; + hash = "sha256-ZytPPGhmt/uANaSgkgsUBOwyQ9ka5H4J+5CnJpEdrNk="; + }; + + 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; + }; +} |