2015-03-19 18:13:39 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib }:
|
2015-01-07 12:56:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-05 13:00:24 +01:00
|
|
|
name = "ocaml-re-1.4.0";
|
2015-01-07 12:56:38 +00:00
|
|
|
|
2015-03-19 18:13:39 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml/ocaml-re/archive/${name}.tar.gz";
|
2015-06-05 13:00:24 +01:00
|
|
|
sha256 = "1xcfmhjgd7prqx2g1addlrk84xpfafmqnpjkqrvg7mw0hn1p7v2m";
|
2015-01-07 12:56:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|