From 4e382bce7ed6ff0903c39210e4fc8a9e02407740 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 7 Jan 2015 13:56:38 +0100 Subject: [PATCH] Adds ocaml-re Re is a regular expression library for OCaml. Homepage: https://github.com/ocaml/ocaml-re --- pkgs/development/ocaml-modules/re/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/ocaml-modules/re/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b5d5078be45..ad6522e7fd4c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3842,6 +3842,8 @@ let pycaml = callPackage ../development/ocaml-modules/pycaml { }; + re = callPackage ../development/ocaml-modules/re { }; + safepass = callPackage ../development/ocaml-modules/safepass { }; sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { };