re2: 20140304 -> 20190401
This commit is contained in:
parent
6e86ed9062
commit
9ecdc72b36
1 changed files with 10 additions and 10 deletions
|
@ -1,24 +1,24 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "re2-${version}";
|
name = "re2-${version}";
|
||||||
version = "20140304";
|
version = "20190401";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://re2.googlecode.com/files/${name}.tgz";
|
owner = "google";
|
||||||
sha256 = "19wn0472c9dsxp35d0m98hlwhngx1f2xhxqgr8cb5x72gnjx3zqb";
|
repo = "re2";
|
||||||
|
rev = "2019-04-01";
|
||||||
|
sha256 = "018b8z3fgcr02rmhxdz80r363k40938cbgmk1c9b46k6xkc4q0hd";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace Makefile --replace "/usr/local" "$out"
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
# we're using gnu sed, even on darwin
|
||||||
# Fixed in https://github.com/google/re2/commit/b2c9765b4a7afbea8b6be1dae548b6f4d5f39e42
|
substituteInPlace Makefile --replace "SED_INPLACE=sed -i '''" "SED_INPLACE=sed -i"
|
||||||
substituteInPlace Makefile \
|
|
||||||
--replace '-dynamiclib' '-dynamiclib -Wl,-install_name,$(libdir)/libre2.so.$(SONAME)'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://code.google.com/p/re2/;
|
homepage = https://github.com/google/re2;
|
||||||
description = "An efficient, principled regular expression library";
|
description = "An efficient, principled regular expression library";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
platforms = with stdenv.lib.platforms; all;
|
platforms = with stdenv.lib.platforms; all;
|
||||||
|
|
Loading…
Reference in a new issue