diff options
author | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-05-19 23:01:40 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-05-19 23:01:40 +0200 |
commit | 0d319657efdbefa967df77a10057bbd346ea0bdd (patch) | |
tree | 6b12e6b1511715a8ae04e78ffd383f9ccd2e8331 /pkgs | |
parent | 2fe842a20001aa2b02325b0f78a2be5f6bd88d90 (diff) | |
download | nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar.gz nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar.bz2 nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar.lz nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar.xz nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.tar.zst nixlib-0d319657efdbefa967df77a10057bbd346ea0bdd.zip |
ocamlPackages.earley: init at 1.0.2 (#40755)
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/earley/default.nix | 28 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/earley/default.nix b/pkgs/development/ocaml-modules/earley/default.nix new file mode 100644 index 000000000000..576d9b2528f5 --- /dev/null +++ b/pkgs/development/ocaml-modules/earley/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index bce2662abfd1..e46888992f77 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -215,6 +215,8 @@ let dtoa = callPackage ../development/ocaml-modules/dtoa { }; + earley = callPackage ../development/ocaml-modules/earley { }; + easy-format = callPackage ../development/ocaml-modules/easy-format { }; eliom = callPackage ../development/ocaml-modules/eliom { }; |