about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/pratter/default.nix
blob: efd2fc6639c282b20aa4cb6187dd6e83548b6ad2 (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
34
35
36
{ 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 = "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 ];
  };
}