git.iko.soy/typeable/nixpkgs
on master help sign in
Adds ocaml-re

Re is a regular expression library for OCaml. Homepage: https://github.com/ocaml/ocaml-re

commit4e382bce7ed6ff0903c39210e4fc8a9e02407740 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 7 Jan 2015, 13:56 (12 years ago) parentfd64740
2 files changed+29
pkgs/development/ocaml-modules/re/default.nix+27 pkgs/top-level/all-packages.nix+2
pkgs/development/ocaml-modules/re/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchgit, ocaml, findlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml-re-1.2.2";
5+
6+ src = fetchgit {
7+ url = https://github.com/ocaml/ocaml-re.git;
8+ rev = "refs/tags/${name}";
9+ sha256 = "1556i1zc6nrg4hxlvidllfhkjwl6n74biyjbvjlby8304n84jrk7";
10+ };
11+
12+ buildInputs = [ ocaml findlib ];
13+
14+ configurePhase = "ocaml setup.ml -configure --prefix $out";
15+ buildPhase = "ocaml setup.ml -build";
16+ installPhase = "ocaml setup.ml -install";
17+
18+ createFindlibDestdir = true;
19+
20+ meta = {
21+ homepage = https://github.com/ocaml/ocaml-re;
22+ platforms = ocaml.meta.platforms;
23+ description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
24+ license = stdenv.lib.licenses.lgpl2;
25+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
26+ };
27+}
pkgs/top-level/all-packages.nix+2
@@ -3842,6 +3842,8 @@ let
38423842
38433843 pycaml = callPackage ../development/ocaml-modules/pycaml { };
38443844
3845+ re = callPackage ../development/ocaml-modules/re { };
3846+
38453847 safepass = callPackage ../development/ocaml-modules/safepass { };
38463848
38473849 sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { };