diff --git a/pkgs/by-name/sd/sdl2-compat/package.nix b/pkgs/by-name/sd/sdl2-compat/package.nix index 396e7ea8919eb..0b28b9200e9e7 100644 --- a/pkgs/by-name/sd/sdl2-compat/package.nix +++ b/pkgs/by-name/sd/sdl2-compat/package.nix @@ -40,9 +40,7 @@ stdenv.mkDerivation (finalAttrs: { libX11 ]; - checkInputs = [ - libGL - ]; + checkInputs = [ libGL ]; outputs = [ "out" @@ -67,6 +65,12 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./find-headers.patch ]; setupHook = ./setup-hook.sh; + postFixup = '' + # allow as a drop in replacement for SDL2 + # Can be removed after treewide switch from pkg-config to pkgconf + ln -s $dev/lib/pkgconfig/sdl2_compat.pc $dev/lib/pkgconfig/sdl2.pc + ''; + passthru = { tests = let