From 444e767071083cbebfe6bd11ed33b9ba2ab8e63e Mon Sep 17 00:00:00 2001 From: Ivar Scholten Date: Mon, 2 May 2022 19:55:14 +0200 Subject: [PATCH 1/2] ryujinx: set makeWrapperArgs as an attribute --- pkgs/applications/emulators/ryujinx/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/emulators/ryujinx/default.nix b/pkgs/applications/emulators/ryujinx/default.nix index e235b2c80fb..60aa9debfb0 100644 --- a/pkgs/applications/emulators/ryujinx/default.nix +++ b/pkgs/applications/emulators/ryujinx/default.nix @@ -58,6 +58,10 @@ buildDotnetModule rec { pulseaudio ]; + makeWrapperArgs = [ + "--suffix PATH : ${lib.getBin ffmpeg}" + ]; + patches = [ ./appdir.patch # Ryujinx attempts to write to the nix store. This patch redirects it to "~/.config/Ryujinx" on Linux. ]; @@ -66,11 +70,6 @@ buildDotnetModule rec { # workaround for https://github.com/Ryujinx/Ryujinx/issues/2349 mkdir -p $out/lib/sndio-6 ln -s ${sndio}/lib/libsndio.so $out/lib/sndio-6/libsndio.so.6 - - # Ryujinx tries to use ffmpeg from PATH - makeWrapperArgs+=( - --suffix PATH : ${lib.makeBinPath [ ffmpeg ]} - ) ''; preFixup = '' From 4d4615583541f1338165dcbc7cfedc66948c7bee Mon Sep 17 00:00:00 2001 From: Ivar Scholten Date: Mon, 2 May 2022 20:22:21 +0200 Subject: [PATCH 2/2] osu-lazer: set dotnetFlags as an attribute --- pkgs/games/osu-lazer/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/games/osu-lazer/default.nix b/pkgs/games/osu-lazer/default.nix index bb006abad57..268090a4e5d 100644 --- a/pkgs/games/osu-lazer/default.nix +++ b/pkgs/games/osu-lazer/default.nix @@ -31,11 +31,9 @@ buildDotnetModule rec { nativeBuildInputs = [ copyDesktopItems ]; - preConfigure = '' - dotnetFlags+=( - --runtime linux-x64 - ) - ''; + dotnetFlags = [ + "--runtime linux-x64" + ]; runtimeDeps = [ ffmpeg