lutris: fix RPCS3 AppImage

A lot of runners are AppImages and these due to their fuse + FHS dependencies, won't work as expected in Nix. This commit implements a workaround that Lutris also employes for flatpaks where they unpack the image and then they run it. This is done via an environment variable passed to the Lutris executable.

This commit also brings all dependencies needed for RPCS3 emulator to work as expected.
This commit is contained in:
Viorel-Cătălin Răpițeanu
2024-12-10 11:08:03 +02:00
parent eaae2eaec7
commit 5dc20e9ede
2 changed files with 6 additions and 3 deletions
@@ -138,6 +138,7 @@ buildPythonApplication rec {
dontWrapGApps = true;
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath requiredTools}"
"--prefix APPIMAGE_EXTRACT_AND_RUN : 1"
"\${gappsWrapperArgs[@]}"
];
+5 -3
View File
@@ -34,6 +34,9 @@ in buildFHSEnv {
targetPkgs = pkgs: with pkgs; [
lutris-unwrapped
# Appimages
fuse
# Adventure Game Studio
allegro dumb
@@ -86,9 +89,8 @@ in buildFHSEnv {
# Redream // "redream is not available for the x86_64 architecture"
# rpcs3 // TODO: "error while loading shared libraries: libz.so.1..."
llvm
# RPCS3
llvm e2fsprogs libgpg-error
# ScummVM
nasm sndio