mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
31 lines
678 B
Nix
31 lines
678 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 ];
|
|
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;
|
|
};
|
|
}
|