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