From 0d319657efdbefa967df77a10057bbd346ea0bdd Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 19 May 2018 23:01:40 +0200 Subject: ocamlPackages.earley: init at 1.0.2 (#40755) --- pkgs/development/ocaml-modules/earley/default.nix | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/development/ocaml-modules/earley/default.nix (limited to 'pkgs/development/ocaml-modules') 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; + }; +} -- cgit 1.4.1