2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit }:
|
2015-01-07 12:56:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-30 14:32:42 +01:00
|
|
|
name = "ocaml-re-1.5.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";
|
2016-05-30 14:32:42 +01:00
|
|
|
sha256 = "17avk7kwmgdjkri1sj5q4a59ykc9rj0bxj6ixxpl6i0n49br3f92";
|
2015-01-07 12:56:38 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ounit ];
|
2015-01-07 12:56:38 +00:00
|
|
|
|
2015-07-01 19:16:50 +01:00
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
|
2015-01-07 12:56:38 +00:00
|
|
|
buildPhase = "ocaml setup.ml -build";
|
2015-07-01 19:16:50 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "ocaml setup.ml -test";
|
2015-01-07 12:56:38 +00:00
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ocaml/ocaml-re;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-07 12:56:38 +00:00
|
|
|
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
|
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|