From a455a2daa2abe9c74037aefa29f8db38018a3f62 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 15 May 2026 11:45:16 +0700 Subject: [PATCH] spades: fix build with gcc 15 --- pkgs/by-name/sp/spades/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/sp/spades/package.nix b/pkgs/by-name/sp/spades/package.nix index 25424578ac48..c79115d4ad49 100644 --- a/pkgs/by-name/sp/spades/package.nix +++ b/pkgs/by-name/sp/spades/package.nix @@ -4,6 +4,7 @@ bzip2, cmake, fetchFromGitHub, + fetchpatch2, ncurses, python3, readline, @@ -20,6 +21,16 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-BlZjfZKtCm1kWNPjdth3pYFN0plU7xfTsFotPefzzMY="; }; + patches = [ + # Add missing for uint{8,64}_t to fix build with gcc 15. + (fetchpatch2 { + url = "https://github.com/ablab/spades/commit/10b6af96ead72fdb19e8e524aa24bdcff9986e76.patch?full_index=1"; + stripLen = 2; + extraPrefix = ""; + hash = "sha256-yAQVqE6DwPe+GZ4VR1cGytaO8NmHz6TUG7EdtbxIuTU="; + }) + ]; + sourceRoot = "${finalAttrs.src.name}/src"; cmakeFlags = [