re2: enable strictDeps, enable structuredAttrs, modernize (#552687)

This commit is contained in:
Stefan Frijters
2026-08-15 10:37:58 +00:00
committed by GitHub

View File

@@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "google";
repo = "re2";
rev = finalAttrs.version;
tag = finalAttrs.version;
hash = "sha256-0J1HVk+eR7VN0ymucW9dNlT36j16XIfCzcs1EVyEIEU=";
};
@@ -43,6 +43,8 @@ stdenv.mkDerivation (finalAttrs: {
propagatedBuildInputs = [ abseil-cpp ] ++ lib.optionals (!stdenv.hostPlatform.isStatic) [ icu ];
strictDeps = true;
cmakeFlags = [
(lib.cmakeBool "RE2_BUILD_TESTING" true)
(lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--timeout;999999")
@@ -60,6 +62,8 @@ stdenv.mkDerivation (finalAttrs: {
haskell-re2 = haskellPackages.re2;
};
__structuredAttrs = true;
meta = {
description = "Regular expression library";
longDescription = ''