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 = [