re2: 2021-09-01 -> 2021-11-01 (#153111)

While at it added trivial updater plumbing.
This commit is contained in:
Sergei Trofimovich 2022-01-09 01:02:22 +00:00 committed by GitHub
parent f789367c26
commit c363e25220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, nix-update-script }:
stdenv.mkDerivation rec {
pname = "re2";
version = "2021-09-01";
version = "2021-11-01";
src = fetchFromGitHub {
owner = "google";
repo = "re2";
rev = version;
sha256 = "1fyhypw345xz8zdh53gz6j1fwgrx0gszk1d349ja37dpxh4jp2jh";
sha256 = "sha256-q8u7xNp6n17F6twPoVkix8iCKPWUN+qg6rhSR4Dv+bI=";
};
patches = [
@ -39,6 +39,12 @@ stdenv.mkDerivation rec {
doInstallCheck = true;
installCheckTarget = "testinstall";
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = {
homepage = "https://github.com/google/re2";
description = "An efficient, principled regular expression library";