pcsx2: get gtk dialogs working (#421226)

This commit is contained in:
David Mieres Pérez 2025-07-04 04:42:08 +02:00 committed by GitHub
parent 00cb6264ff
commit cafdbe221c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@
curl, curl,
extra-cmake-modules, extra-cmake-modules,
ffmpeg, ffmpeg,
gtk3,
libXrandr, libXrandr,
libaio, libaio,
libbacktrace, libbacktrace,
@ -23,6 +24,7 @@
vulkan-headers, vulkan-headers,
vulkan-loader, vulkan-loader,
wayland, wayland,
wrapGAppsHook3,
zip, zip,
zstd, zstd,
plutovg, plutovg,
@ -76,6 +78,7 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
extra-cmake-modules extra-cmake-modules
pkg-config pkg-config
strip-nondeterminism strip-nondeterminism
wrapGAppsHook3
wrapQtAppsHook wrapQtAppsHook
zip zip
]; ];
@ -83,6 +86,7 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
buildInputs = [ buildInputs = [
curl curl
ffmpeg ffmpeg
gtk3
libaio libaio
libbacktrace libbacktrace
libpcap libpcap
@ -124,6 +128,12 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
in in
[ "--prefix LD_LIBRARY_PATH : ${libs}" ]; [ "--prefix LD_LIBRARY_PATH : ${libs}" ];
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
# https://github.com/PCSX2/pcsx2/pull/10200 # https://github.com/PCSX2/pcsx2/pull/10200
# Can't avoid the double wrapping, the binary wrapper from qtWrapperArgs doesn't support --run # Can't avoid the double wrapping, the binary wrapper from qtWrapperArgs doesn't support --run
postFixup = '' postFixup = ''
@ -155,6 +165,7 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
]; ];
mainProgram = "pcsx2-qt"; mainProgram = "pcsx2-qt";
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
_0david0mp
hrdinka hrdinka
govanify govanify
matteopacini matteopacini