about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/gen/default.nix
blob: 9242133ec236e1ce1e74ef431e9cffd410cd83ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ 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 ];
  nativeCheckInputs = [ 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;
  };
}