mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +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.
36 lines
783 B
Nix
36 lines
783 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildDunePackage
|
|
, camlp-streams
|
|
, alcotest
|
|
, qcheck
|
|
, qcheck-alcotest
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
version = "2.0.0";
|
|
pname = "pratter";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gabrielhdt";
|
|
repo = "pratter";
|
|
rev = version;
|
|
hash = "sha256-QEq8Zt2pfsRT04Zd+ugGKcHdzkqYcDDUg/iAFMMDdEE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ camlp-streams ];
|
|
|
|
nativeCheckInputs = [ alcotest qcheck qcheck-alcotest ];
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "An extended Pratt parser";
|
|
homepage = "https://github.com/gabrielhdt/pratter";
|
|
license = licenses.bsd3;
|
|
changelog = "https://github.com/gabrielhdt/pratter/raw/${version}/CHANGELOG.md";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|