From 8efa6b714a4c3faa1fec31420c14ee479dda7f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 7 Mar 2025 10:02:25 +0100 Subject: [PATCH] SDL2: upstream patch needed after pipewire update --- pkgs/development/libraries/SDL2/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index d88431bca7df..24f7aaafa3e3 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -3,6 +3,7 @@ stdenv, config, fetchFromGitHub, + fetchpatch, nix-update-script, pkg-config, mesa, @@ -91,6 +92,11 @@ stdenv.mkDerivation (finalAttrs: { # but on NixOS they're spread across different paths. # This patch + the setup-hook will ensure that `sdl2-config --cflags` works correctly. ./find-headers.patch + # https://github.com/libsdl-org/SDL/issues/12224 + (fetchpatch { + url = "https://github.com/libsdl-org/SDL/commit/9e079fe9c7931738ed63d257b1d7fb8a07b66824.diff"; + hash = "sha256-G8gAivCtw5zuPVI9wvEq2oIo/NxFdnPqyLwrmHG1EJ4="; + }) ]; postPatch = ''