summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/earley_ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-05-21 16:10:03 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2018-05-21 16:10:12 +0000
commit19f768a97808da4c8700ae24513ab557801be12c (patch)
treecf1a74338460226f2037647a366c1ba09134cdf5 /pkgs/development/ocaml-modules/earley_ocaml
parentd239113bb0a2b471ea72d8a8af2331ec87d72a93 (diff)
downloadnixlib-19f768a97808da4c8700ae24513ab557801be12c.tar
nixlib-19f768a97808da4c8700ae24513ab557801be12c.tar.gz
nixlib-19f768a97808da4c8700ae24513ab557801be12c.tar.bz2
nixlib-19f768a97808da4c8700ae24513ab557801be12c.tar.lz
nixlib-19f768a97808da4c8700ae24513ab557801be12c.tar.xz
nixlib-19f768a97808da4c8700ae24513ab557801be12c.tar.zst
nixlib-19f768a97808da4c8700ae24513ab557801be12c.zip
ocamlPackages.earley_ocaml: init at 1.0.2
Diffstat (limited to 'pkgs/development/ocaml-modules/earley_ocaml')
-rw-r--r--pkgs/development/ocaml-modules/earley_ocaml/default.nix30
1 files changed, 30 insertions, 0 deletions
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;
+  };
+}