From 50b2abd79248bc5e2226cf5acf4a8f2b94153dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=2E=20=D0=A7=D0=B0=D1=80=D0=BB=D1=8C=D0=B7?= Date: Tue, 24 Feb 2026 12:22:18 +0900 Subject: [PATCH] snes9x: fix build with GCC 15 --- pkgs/by-name/sn/snes9x/glslang-include-cstdint.patch | 10 ++++++++++ pkgs/by-name/sn/snes9x/package.nix | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/by-name/sn/snes9x/glslang-include-cstdint.patch diff --git a/pkgs/by-name/sn/snes9x/glslang-include-cstdint.patch b/pkgs/by-name/sn/snes9x/glslang-include-cstdint.patch new file mode 100644 index 000000000000..d6bc643e1eb2 --- /dev/null +++ b/pkgs/by-name/sn/snes9x/glslang-include-cstdint.patch @@ -0,0 +1,10 @@ +--- a/external/glslang/SPIRV/SpvBuilder.h ++++ b/external/glslang/SPIRV/SpvBuilder.h +@@ -61,6 +61,7 @@ + #include "spirv.hpp" + #include "spvIR.h" + ++#include + #include + #include + #include diff --git a/pkgs/by-name/sn/snes9x/package.nix b/pkgs/by-name/sn/snes9x/package.nix index 316d8a8dc1bd..76eca8ac9e59 100644 --- a/pkgs/by-name/sn/snes9x/package.nix +++ b/pkgs/by-name/sn/snes9x/package.nix @@ -42,6 +42,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-INMVyB3alwmsApO7ToAaUWgh7jlg2MeLxqHCEnUO88U="; }; + patches = [ + ./glslang-include-cstdint.patch + ]; + nativeBuildInputs = [ pkg-config python3