1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 stdlib-shims,
6}:
7
8buildDunePackage rec {
9 version = "3.0.0";
10 pname = "earley";
11 src = fetchFromGitHub {
12 owner = "rlepigre";
13 repo = "ocaml-earley";
14 rev = version;
15 sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y";
16 };
17
18 minimalOCamlVersion = "4.07";
19 useDune2 = true;
20
21 buildInputs = [ stdlib-shims ];
22
23 doCheck = true;
24
25 meta = {
26 description = "Parser combinators based on Earley Algorithm";
27 homepage = "https://github.com/rlepigre/ocaml-earley";
28 license = lib.licenses.cecill-b;
29 maintainers = [ lib.maintainers.vbgl ];
30 mainProgram = "pa_ocaml";
31 };
32}