From 2a8bf999b567eafa451a63bef83db18b51272879 Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Tue, 29 Sep 2026 01:13:42 +0200 Subject: [PATCH] redis-plus-plus: add patch for gcc 16 --- pkgs/by-name/re/redis-plus-plus/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/re/redis-plus-plus/package.nix b/pkgs/by-name/re/redis-plus-plus/package.nix index 5188c3bcc6da..530f2d05ad9a 100644 --- a/pkgs/by-name/re/redis-plus-plus/package.nix +++ b/pkgs/by-name/re/redis-plus-plus/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, cmake, hiredis, enableShared ? !stdenv.hostPlatform.isStatic, @@ -24,6 +25,13 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./0001-Fix-pkg-config-paths.patch + + # https://github.com/sewenew/redis-plus-plus/issues/678 + (fetchpatch2 { + name = "walk-around-gcc-16-bug.patch"; + url = "https://github.com/sewenew/redis-plus-plus/commit/4b4cd0dc2931e96842ef05e165673b8679e32f48.patch?full_index=1"; + hash = "sha256-neZj/J9nRg3Ft/+wQcRzvTjwm41odNnEfHnrs8/KiL4="; + }) ]; nativeBuildInputs = [ cmake ];