SDL_compat: use SDL3 through sdl2-compat (#386495)

authored by

K900 and committed by
GitHub
c715deff 2e34baa0

+9 -7
+9 -7
pkgs/by-name/sd/SDL_compat/package.nix
··· 1 1 { 2 2 lib, 3 - SDL2, 3 + sdl2-compat, 4 4 cmake, 5 5 darwin, 6 6 fetchFromGitHub, 7 7 libGLU, 8 8 libiconv, 9 + libX11, 9 10 mesa, 10 11 pkg-config, 11 12 stdenv, ··· 38 39 autoSignDarwinBinariesHook 39 40 ]; 40 41 41 - propagatedBuildInputs = 42 - [ SDL2 ] 42 + buildInputs = 43 + [ 44 + libX11 45 + sdl2-compat 46 + ] 43 47 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 44 48 libiconv 45 49 Cocoa ··· 67 71 if stdenv.hostPlatform.isDarwin then 68 72 '' 69 73 install_name_tool ${ 70 - lib.strings.concatMapStrings ( 71 - x: " -add_rpath ${lib.makeLibraryPath [ x ]} " 72 - ) finalAttrs.propagatedBuildInputs 74 + lib.strings.concatMapStrings (x: " -add_rpath ${lib.makeLibraryPath [ x ]} ") finalAttrs.buildInputs 73 75 } "$lib" 74 76 '' 75 77 else 76 78 '' 77 - patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath finalAttrs.propagatedBuildInputs}" "$lib" 79 + patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath finalAttrs.buildInputs}" "$lib" 78 80 '' 79 81 } 80 82 fi