about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/gen/default.nix
blob: 699af9f5f2048f6bd5029ffd8d5980ecd4330545 (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
31
32
33
{ 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=";
  };

  strictDeps = true;

  buildInputs = [ dune-configurator ];
  propagatedBuildInputs = [ seq ];
  nativeCheckInputs = [ qcheck ounit2 ];
  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;
  };
}