diff --git a/pkgs/by-name/te/tenacity/cstdlib.patch b/pkgs/by-name/te/tenacity/cstdlib.patch new file mode 100644 index 000000000000..ed74657c8a97 --- /dev/null +++ b/pkgs/by-name/te/tenacity/cstdlib.patch @@ -0,0 +1,26 @@ +From f523f6a4272910417da6d8f02597a560a9c594e4 Mon Sep 17 00:00:00 2001 +From: Ethan Carter Edwards +Date: Wed, 31 Dec 2025 21:17:39 -0500 +Subject: [PATCH] fix compilation for gcc 15 + +Link: https://github.com/NixOS/nixpkgs/issues/475574 + +Signed-off-by: Ethan Carter Edwards +--- + libraries/lib-utility/MemoryX.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libraries/lib-utility/MemoryX.h b/libraries/lib-utility/MemoryX.h +index 2c96af17b..58bf67127 100644 +--- a/libraries/lib-utility/MemoryX.h ++++ b/libraries/lib-utility/MemoryX.h +@@ -5,6 +5,7 @@ + #include + #include + #include // align_val_t and hardware_destructive_interference_size + #include // Needed for free. ++#include + #ifndef safenew + #define safenew new +-- +2.47.3 diff --git a/pkgs/by-name/te/tenacity/package.nix b/pkgs/by-name/te/tenacity/package.nix index 3636dc9342ee..4af8231506fb 100644 --- a/pkgs/by-name/te/tenacity/package.nix +++ b/pkgs/by-name/te/tenacity/package.nix @@ -61,6 +61,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-2gndOwgEJK2zDSbjcZigbhEpGv301/ygrf+EQhKp8PI="; }; + # https://codeberg.org/tenacityteam/tenacity/pulls/696 + # can be removed at next version bump + patches = [ + ./cstdlib.patch + ]; + postPatch = '' # GIT_DESCRIBE is used for the version string and can't be passed in # as an option, so we substitute it instead.