sdl2-compat: revert breaking upstream change

Fixes segmentation fault in Dwarf Fortress.

See https://github.com/NixOS/nixpkgs/pull/457099#issuecomment-3517117420

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2025-11-11 15:42:18 +01:00
parent 1d9d83e07e
commit e253e326e0
+10 -1
View File
@@ -2,6 +2,7 @@
cmake,
lib,
fetchFromGitHub,
fetchpatch2,
ninja,
sdl3,
stdenv,
@@ -71,7 +72,15 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
patches = [ ./find-headers.patch ];
patches = [
./find-headers.patch
# https://github.com/libsdl-org/sdl2-compat/pull/545
(fetchpatch2 {
url = "https://github.com/libsdl-org/sdl2-compat/commit/b799076c72c2492224e81544f58f92b737cccbd3.patch?full_index=1";
hash = "sha256-fAc8yBlT+XFHDKcF4MFgBAz2WtXGmhYzNNrjaGSr+do=";
})
];
setupHook = ./setup-hook.sh;
postFixup = ''