pkgs/SDL_compat: symlink package config specification file into sdl.pc

This commit is contained in:
Grimmauld
2025-03-09 07:36:20 +01:00
parent 63e31591f2
commit aa8bb53991
+6
View File
@@ -50,6 +50,12 @@ stdenv.mkDerivation (finalAttrs: {
setupHook = ./setup-hook.sh;
postInstall = ''
# allow as a drop in replacement for SDL
# Can be removed after treewide switch from pkg-config to pkgconf
ln -s $out/lib/pkgconfig/sdl12_compat.pc $out/lib/pkgconfig/sdl.pc
'';
postFixup = ''
for lib in $out/lib/*${stdenv.hostPlatform.extensions.sharedLibrary}* ; do
if [[ -L "$lib" ]]; then