ocamlPackages.earley: init at 1.0.2 (#40755)
This commit is contained in:
parent
2fe842a200
commit
0d319657ef
28
pkgs/development/ocaml-modules/earley/default.nix
Normal file
28
pkgs/development/ocaml-modules/earley/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
|
then throw "earley is not available for OCaml ${ocaml.version}"
|
||||||
|
else
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.0.2";
|
||||||
|
name = "ocaml${ocaml.version}-earley-${version}";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rlepigre";
|
||||||
|
repo = "ocaml-earley";
|
||||||
|
rev = "ocaml-earley_${version}";
|
||||||
|
sha256 = "110njakmx1hyq42hyr6gx6qhaxly860whfhd6r0vks4yfp68qvcx";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ which ocaml findlib ocamlbuild ];
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Parser combinators based on Earley Algorithm";
|
||||||
|
license = stdenv.lib.licenses.cecill-b;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
};
|
||||||
|
}
|
@ -215,6 +215,8 @@ let
|
|||||||
|
|
||||||
dtoa = callPackage ../development/ocaml-modules/dtoa { };
|
dtoa = callPackage ../development/ocaml-modules/dtoa { };
|
||||||
|
|
||||||
|
earley = callPackage ../development/ocaml-modules/earley { };
|
||||||
|
|
||||||
easy-format = callPackage ../development/ocaml-modules/easy-format { };
|
easy-format = callPackage ../development/ocaml-modules/easy-format { };
|
||||||
|
|
||||||
eliom = callPackage ../development/ocaml-modules/eliom { };
|
eliom = callPackage ../development/ocaml-modules/eliom { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user