depot/third_party/nixpkgs/pkgs/development/ocaml-modules/pratter/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

36 lines
798 B
Nix

{ lib
, fetchFromGitHub
, buildDunePackage
, camlp-streams
, alcotest
, qcheck
, qcheck-alcotest
}:
buildDunePackage rec {
version = "2.0.0";
pname = "pratter";
minimalOCamlVersion = "4.08";
duneVersion = "3";
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 ];
};
}