about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/re
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-07 13:56:38 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-07 14:15:10 +0100
commit4e382bce7ed6ff0903c39210e4fc8a9e02407740 (patch)
treeeb1bd0c2a6f6b0d692e7d3901b0552a669331c70 /pkgs/development/ocaml-modules/re
parentfd64740c338e7deb389e7469bf48e6b588c38ba3 (diff)
downloadnixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar.gz
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar.bz2
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar.lz
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar.xz
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.tar.zst
nixlib-4e382bce7ed6ff0903c39210e4fc8a9e02407740.zip
Adds ocaml-re
Re is a regular expression library for OCaml.

Homepage: https://github.com/ocaml/ocaml-re
Diffstat (limited to 'pkgs/development/ocaml-modules/re')
-rw-r--r--pkgs/development/ocaml-modules/re/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/re/default.nix b/pkgs/development/ocaml-modules/re/default.nix
new file mode 100644
index 000000000000..1e4599bbf302
--- /dev/null
+++ b/pkgs/development/ocaml-modules/re/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchgit, ocaml, findlib }:
+
+stdenv.mkDerivation rec {
+  name = "ocaml-re-1.2.2";
+
+  src = fetchgit {
+    url = https://github.com/ocaml/ocaml-re.git;
+    rev = "refs/tags/${name}";
+    sha256 = "1556i1zc6nrg4hxlvidllfhkjwl6n74biyjbvjlby8304n84jrk7";
+  };
+
+  buildInputs = [ ocaml findlib ];
+
+  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  buildPhase = "ocaml setup.ml -build";
+  installPhase = "ocaml setup.ml -install";
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/ocaml/ocaml-re;
+    platforms = ocaml.meta.platforms;
+    description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
+    license = stdenv.lib.licenses.lgpl2;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}