From 19f768a97808da4c8700ae24513ab557801be12c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 21 May 2018 16:10:03 +0000 Subject: [PATCH] ocamlPackages.earley_ocaml: init at 1.0.2 --- .../ocaml-modules/earley_ocaml/default.nix | 30 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/ocaml-modules/earley_ocaml/default.nix diff --git a/pkgs/development/ocaml-modules/earley_ocaml/default.nix b/pkgs/development/ocaml-modules/earley_ocaml/default.nix new file mode 100644 index 000000000000..92a1eb1e5c8e --- /dev/null +++ b/pkgs/development/ocaml-modules/earley_ocaml/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, earley }: + +stdenv.mkDerivation rec { + version = "1.0.2"; + name = "ocaml${ocaml.version}-earley_ocaml-${version}"; + src = fetchFromGitHub { + owner = "rlepigre"; + repo = "ocaml-earley-ocaml"; + rev = "ocaml-earley-ocaml_${version}"; + sha256 = "0f8kr49r2xfs7cbzps4r9i92ckhwssaiydam846jrky3z5djn2jc"; + }; + + buildInputs = [ which ocaml findlib ocamlbuild ]; + + propagatedBuildInputs = [ earley ]; + + preBuild = "make"; + + createFindlibDestdir = true; + + installFlags = [ "BINDIR=$(out)/bin" ]; + + meta = { + description = "Extensible OCaml parser to be used with Earley"; + 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 e46888992f77..01a5b224d1e5 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -217,6 +217,8 @@ let earley = callPackage ../development/ocaml-modules/earley { }; + earley_ocaml = callPackage ../development/ocaml-modules/earley_ocaml { }; + easy-format = callPackage ../development/ocaml-modules/easy-format { }; eliom = callPackage ../development/ocaml-modules/eliom { };