Merge pull request #187070 from zhaofengli/ryujinx-ava

ryujinx: Add dependencies for the Avalonia UI
This commit is contained in:
Ivv 2022-08-18 21:00:27 +02:00 committed by GitHub
commit dc32017e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,14 @@
, gdk-pixbuf
, wrapGAppsHook
, vulkan-loader
, libICE
, libSM
, libXi
, libXcursor
, libXext
, libXrandr
, fontconfig
, glew
}:
buildDotnetModule rec {
@ -34,7 +42,7 @@ buildDotnetModule rec {
# TODO: Add the headless frontend. Currently errors on the following:
# System.Exception: SDL2 initlaization failed with error "No available video device"
executables = [ "Ryujinx" ];
executables = [ "Ryujinx" "Ryujinx.Ava" ];
nativeBuildInputs = [
wrapGAppsHook
@ -56,12 +64,27 @@ buildDotnetModule rec {
pulseaudio
vulkan-loader
ffmpeg
# Avalonia UI
libICE
libSM
libXi
libXcursor
libXext
libXrandr
fontconfig
glew
];
patches = [
./appdir.patch # Ryujinx attempts to write to the nix store. This patch redirects it to "~/.config/Ryujinx" on Linux.
];
makeWrapperArgs = [
# Without this Ryujinx fails to start on wayland. See https://github.com/Ryujinx/Ryujinx/issues/2714
"--set GDK_BACKEND x11"
];
preInstall = ''
# workaround for https://github.com/Ryujinx/Ryujinx/issues/2349
mkdir -p $out/lib/sndio-6