depot/third_party/nixpkgs/pkgs/development/ocaml-modules/pratter/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

35 lines
777 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 ];
checkInputs = [ 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 ];
};
}