@@ -0,0 +1,27 @@
1+{ stdenv, fetchgit, ocaml, findlib }:
3+stdenv.mkDerivation rec {
4+ name = "ocaml-re-1.2.2";
7+ url = https://github.com/ocaml/ocaml-re.git;
8+ rev = "refs/tags/${name}";
9+ sha256 = "1556i1zc6nrg4hxlvidllfhkjwl6n74biyjbvjlby8304n84jrk7";
12+ buildInputs = [ ocaml findlib ];
14+ configurePhase = "ocaml setup.ml -configure --prefix $out";
15+ buildPhase = "ocaml setup.ml -build";
16+ installPhase = "ocaml setup.ml -install";
18+ createFindlibDestdir = true;
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 ];