summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/pratter/default.nix
blob: c42a3ea74399afa4eeff6dab867ecf196db76a56 (plain)
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
37
38
{
  lib,
  fetchFromGitLab,
  buildDunePackage,
  alcotest,
  qcheck,
  qcheck-alcotest,
}:

buildDunePackage (finalAttrs: {
  version = "5.0.1";
  pname = "pratter";

  minimalOCamlVersion = "4.10";

  src = fetchFromGitLab {
    domain = "forge.tedomum.net";
    owner = "koizel";
    repo = "pratter";
    tag = finalAttrs.version;
    hash = "sha256-Ib7EplEvOuYcAS9cfzo5994SqCv2eiysLekYfH09IMw=";
  };

  checkInputs = [
    alcotest
    qcheck
    qcheck-alcotest
  ];
  doCheck = true;

  meta = {
    description = "Extended Pratt parser";
    homepage = "https://github.com/gabrielhdt/pratter";
    license = lib.licenses.bsd3;
    changelog = "https://github.com/gabrielhdt/pratter/raw/${finalAttrs.version}/CHANGELOG.md";
    maintainers = with lib.maintainers; [ bcdarwin ];
  };
})