2013-08-15 13:07:04 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "re2";
|
2014-04-26 18:12:20 +00:00
|
|
|
version = "20140304";
|
2013-08-15 13:07:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://re2.googlecode.com/files/${name}-${version}.tgz";
|
2014-04-26 18:12:20 +00:00
|
|
|
sha256 = "19wn0472c9dsxp35d0m98hlwhngx1f2xhxqgr8cb5x72gnjx3zqb";
|
2013-08-15 13:07:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://code.google.com/p/re2/;
|
|
|
|
description = "An efficient, principled regular expression library";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2013-08-15 13:07:04 +00:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
|
|
|
}
|