rpcs3: add gapps hook for gtk file picker support

This commit is contained in:
matteo bob 2024-07-05 17:33:55 -04:00
parent d603719ec6
commit 8d3dcbe391

View File

@ -28,6 +28,7 @@
, SDL2
, waylandSupport ? true
, wayland
, wrapGAppsHook3
}:
let
@ -81,7 +82,9 @@ stdenv.mkDerivation {
(lib.cmakeBool "USE_FAUDIO" faudioSupport)
];
nativeBuildInputs = [ cmake pkg-config git wrapQtAppsHook ];
dontWrapGApps = true;
nativeBuildInputs = [ cmake pkg-config git wrapQtAppsHook wrapGAppsHook3 ];
buildInputs = [
qtbase qtmultimedia openal glew vulkan-headers vulkan-loader libpng ffmpeg
@ -90,6 +93,10 @@ stdenv.mkDerivation {
++ lib.optional faudioSupport faudio
++ lib.optionals waylandSupport [ wayland qtwayland ];
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
postInstall = ''
# Taken from https://wiki.rpcs3.net/index.php?title=Help:Controller_Configuration
install -D ${./99-ds3-controllers.rules} $out/etc/udev/rules.d/99-ds3-controllers.rules