mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
re2: enable strictDeps, enable structuredAttrs, modernize (#552687)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user