ocamlPackages.earley: init at 1.0.2 (#40755)

authored by Vincent Laporte and committed by xeji 0d319657 2fe842a2

+30
+28
pkgs/development/ocaml-modules/earley/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild }: 2 + 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.03" 4 + then throw "earley is not available for OCaml ${ocaml.version}" 5 + else 6 + 7 + stdenv.mkDerivation rec { 8 + version = "1.0.2"; 9 + name = "ocaml${ocaml.version}-earley-${version}"; 10 + src = fetchFromGitHub { 11 + owner = "rlepigre"; 12 + repo = "ocaml-earley"; 13 + rev = "ocaml-earley_${version}"; 14 + sha256 = "110njakmx1hyq42hyr6gx6qhaxly860whfhd6r0vks4yfp68qvcx"; 15 + }; 16 + 17 + buildInputs = [ which ocaml findlib ocamlbuild ]; 18 + 19 + createFindlibDestdir = true; 20 + 21 + meta = { 22 + description = "Parser combinators based on Earley Algorithm"; 23 + license = stdenv.lib.licenses.cecill-b; 24 + maintainers = [ stdenv.lib.maintainers.vbgl ]; 25 + inherit (ocaml.meta) platforms; 26 + inherit (src.meta) homepage; 27 + }; 28 + }
+2
pkgs/top-level/ocaml-packages.nix
··· 215 216 dtoa = callPackage ../development/ocaml-modules/dtoa { }; 217 218 easy-format = callPackage ../development/ocaml-modules/easy-format { }; 219 220 eliom = callPackage ../development/ocaml-modules/eliom { };
··· 215 216 dtoa = callPackage ../development/ocaml-modules/dtoa { }; 217 218 + earley = callPackage ../development/ocaml-modules/earley { }; 219 + 220 easy-format = callPackage ../development/ocaml-modules/easy-format { }; 221 222 eliom = callPackage ../development/ocaml-modules/eliom { };