diff options
author | Marco Maggesi <maggesi@math.unifi.it> | 2010-12-09 15:40:04 +0000 |
---|---|---|
committer | Marco Maggesi <maggesi@math.unifi.it> | 2010-12-09 15:40:04 +0000 |
commit | ac457478e35e56e7370e3e40167e5df75de98363 (patch) | |
tree | fcbfe2bb58b8e32bbb60c0c4e25e069139e73ceb /pkgs/development/ocaml-modules/pcre | |
parent | 114fa21c481f0c9b52f4e7a2915bffbdfb61467e (diff) |
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
Diffstat (limited to 'pkgs/development/ocaml-modules/pcre')
-rw-r--r-- | pkgs/development/ocaml-modules/pcre/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/pcre/default.nix b/pkgs/development/ocaml-modules/pcre/default.nix new file mode 100644 index 0000000000000..d1287425625c5 --- /dev/null +++ b/pkgs/development/ocaml-modules/pcre/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl, pcre, ocaml, findlib}: + +let + ocaml_version = (builtins.parseDrvName ocaml.name).version; + version = "6.1.0"; +in + +stdenv.mkDerivation { + name = "ocaml-pcre-${version}"; + + src = fetchurl { + url = "http://hg.ocaml.info/release/pcre-ocaml/archive/" + + "release-${version}.tar.bz2"; + sha256 = "1lj9mzabi1crxwvb2ly1l10h4hlx0fw20nbnq76bbzzkzabjs4ll"; + }; + + buildInputs = [pcre ocaml findlib]; + + configurePhase = "true"; # Skip configure phase + + meta = { + homepage = "http://www.ocaml.info/home/ocaml_sources.html#pcre-ocaml"; + description = "An efficient C-library for pattern matching with Perl-style regular expressions in OCaml"; + license = "LGPL"; + }; +} |