summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/earley/default.nix
blob: 0d365c8036dd174d1444f9b5a3474c4b2a8f5b2f (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
{ lib, fetchFromGitHub, ocaml, buildDunePackage
, stdlib-shims
}:

buildDunePackage rec {
  version = "3.0.0";
  pname = "earley";
  src = fetchFromGitHub {
    owner = "rlepigre";
    repo = "ocaml-earley";
    rev = version;
    sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y";
  };

  minimumOCamlVersion = "4.07";
  useDune2 = true;

  buildInputs = [ stdlib-shims ];

  doCheck = true;

  meta = {
    description = "Parser combinators based on Earley Algorithm";
    homepage = "https://github.com/rlepigre/ocaml-earley";
    license = lib.licenses.cecill-b;
    maintainers = [ lib.maintainers.vbgl ];
    mainProgram = "pa_ocaml";
  };
}