diff options
author | Ivv <41924494+IvarWithoutBones@users.noreply.github.com> | 2022-08-18 21:00:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 21:00:27 +0200 |
commit | dc32017e38ccd8bf6d414135ae0942a494ff4ca5 (patch) | |
tree | 7bd77ac7d9b2021bfe3168bdece996dcdb39f248 /pkgs/applications/emulators | |
parent | 6a1263503c8554d8a4ac839d3281489681026bb8 (diff) | |
parent | 6247b00637c93ae28f2e247cb62dc36e956818de (diff) |
Merge pull request #187070 from zhaofengli/ryujinx-ava
ryujinx: Add dependencies for the Avalonia UI
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/ryujinx/default.nix | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/ryujinx/default.nix b/pkgs/applications/emulators/ryujinx/default.nix index 8d77e00e82014..41348c9848c1f 100644 --- a/pkgs/applications/emulators/ryujinx/default.nix +++ b/pkgs/applications/emulators/ryujinx/default.nix @@ -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 |