30 lines
850 B
Nix
30 lines
850 B
Nix
{stdenv, buildOcaml, fetchurl, ocaml, core, pa-ounit, pa-test,
|
|
bin-prot, comparelib, sexplib, rsync}:
|
|
|
|
buildOcaml rec {
|
|
name = "re2";
|
|
version = "112.06.00";
|
|
|
|
minimumSupportedOcamlVersion = "4.00";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/janestreet/re2/archive/${version}.tar.gz";
|
|
sha256 = "a538765872363fcb67f12b95c07455a0afd68f5ae9008b59bb85a996d97cc752";
|
|
};
|
|
patches = if stdenv.isDarwin
|
|
then [./Makefile.patch ./myocamlbuild.patch]
|
|
else null;
|
|
|
|
buildInputs = [ pa-ounit pa-test rsync ];
|
|
propagatedBuildInputs = [ core bin-prot comparelib sexplib ];
|
|
|
|
hasSharedObjects = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/janestreet/re2;
|
|
description = "OCaml bindings for RE2";
|
|
license = stdenv.lib.licenses.asl20;
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
};
|
|
}
|