ocamlPackages.earley: 2.0.0 → 3.0.0
This commit is contained in:
parent
d83e5a1ff6
commit
e7ebd6be80
@ -1,18 +1,23 @@
|
|||||||
{ lib, fetchurl, ocaml, buildDunePackage }:
|
{ lib, fetchFromGitHub, ocaml, buildDunePackage
|
||||||
|
, stdlib-shims
|
||||||
if lib.versionAtLeast ocaml.version "4.08"
|
}:
|
||||||
then throw "earley is not available for OCaml ${ocaml.version}"
|
|
||||||
else
|
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
version = "2.0.0";
|
version = "3.0.0";
|
||||||
pname = "earley";
|
pname = "earley";
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/rlepigre/ocaml-earley/releases/download/${version}/earley-${version}.tbz";
|
owner = "rlepigre";
|
||||||
sha256 = "1kjr0wh3lji7f493kf48rphxnlv3sygj5a8rmx9z3xkpbd7aqyyw";
|
repo = "ocaml-earley";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y";
|
||||||
};
|
};
|
||||||
|
|
||||||
minimumOCamlVersion = "4.03";
|
minimumOCamlVersion = "4.07";
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
buildInputs = [ stdlib-shims ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Parser combinators based on Earley Algorithm";
|
description = "Parser combinators based on Earley Algorithm";
|
||||||
|
Loading…
Reference in New Issue
Block a user