1{
2 lib,
3 fetchFromGitLab,
4 buildDunePackage,
5 camlp-streams,
6 alcotest,
7 qcheck,
8 qcheck-alcotest,
9}:
10
11buildDunePackage rec {
12 version = "3.0.0";
13 pname = "pratter";
14
15 minimalOCamlVersion = "4.08";
16
17 src = fetchFromGitLab {
18 domain = "forge.tedomum.net";
19 owner = "koizel";
20 repo = "pratter";
21 tag = version;
22 hash = "sha256-O9loVYPJ9xoYf221vBbclqNNq2AA3ImUFGHxtfK3Jwc=";
23 };
24
25 propagatedBuildInputs = [ camlp-streams ];
26
27 checkInputs = [
28 alcotest
29 qcheck
30 qcheck-alcotest
31 ];
32 doCheck = true;
33
34 meta = with lib; {
35 description = "Extended Pratt parser";
36 homepage = "https://github.com/gabrielhdt/pratter";
37 license = licenses.bsd3;
38 changelog = "https://github.com/gabrielhdt/pratter/raw/${version}/CHANGELOG.md";
39 maintainers = with maintainers; [ bcdarwin ];
40 };
41}