2020-10-07 09:15:18 +00:00
|
|
|
{ lib, fetchFromGitHub, ocaml, buildDunePackage
|
|
|
|
, stdlib-shims
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "3.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "earley";
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rlepigre";
|
|
|
|
repo = "ocaml-earley";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2020-10-07 09:15:18 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ stdlib-shims ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Parser combinators based on Earley Algorithm";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/rlepigre/ocaml-earley";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.cecill-b;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "pa_ocaml";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|