2020-09-30 07:37:13 +01:00
|
|
|
{ lib, fetchFromGitHub, ocaml, buildDunePackage
|
|
|
|
, stdlib-shims
|
|
|
|
}:
|
2018-05-19 22:01:40 +01:00
|
|
|
|
2019-05-21 21:17:57 +01:00
|
|
|
buildDunePackage rec {
|
2020-09-30 07:37:13 +01:00
|
|
|
version = "3.0.0";
|
2019-05-21 21:17:57 +01:00
|
|
|
pname = "earley";
|
2020-09-30 07:37:13 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rlepigre";
|
|
|
|
repo = "ocaml-earley";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y";
|
2018-05-19 22:01:40 +01:00
|
|
|
};
|
|
|
|
|
2020-09-30 07:37:13 +01:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ stdlib-shims ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-05-19 22:01:40 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Parser combinators based on Earley Algorithm";
|
2019-05-21 21:17:57 +01:00
|
|
|
license = lib.licenses.cecill-b;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/rlepigre/ocaml-earley";
|
2018-05-19 22:01:40 +01:00
|
|
|
};
|
|
|
|
}
|