2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildFHSUserEnv, lutris-unwrapped
|
2021-08-06 21:57:35 +00:00
|
|
|
, extraPkgs ? pkgs: [ ]
|
|
|
|
, extraLibraries ? pkgs: [ ]
|
2020-04-24 23:36:52 +00:00
|
|
|
, steamSupport ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
qt5Deps = pkgs: with pkgs.qt5; [ qtbase qtmultimedia ];
|
2021-05-20 23:08:51 +00:00
|
|
|
gnomeDeps = pkgs: with pkgs; [ gnome.zenity gtksourceview gnome.gnome-desktop gnome.libgnome-keyring webkitgtk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
xorgDeps = pkgs: with pkgs.xorg; [
|
|
|
|
libX11 libXrender libXrandr libxcb libXmu libpthreadstubs libXext libXdmcp
|
|
|
|
libXxf86vm libXinerama libSM libXv libXaw libXi libXcursor libXcomposite
|
|
|
|
];
|
|
|
|
|
|
|
|
in buildFHSUserEnv {
|
|
|
|
name = "lutris";
|
|
|
|
|
|
|
|
runScript = "lutris";
|
|
|
|
|
|
|
|
targetPkgs = pkgs: with pkgs; [
|
|
|
|
lutris-unwrapped
|
|
|
|
|
|
|
|
# Adventure Game Studio
|
|
|
|
allegro dumb
|
|
|
|
|
|
|
|
# Desmume
|
|
|
|
lua agg soundtouch openal desktop-file-utils atk
|
|
|
|
|
|
|
|
# DGen // TODO: libarchive is broken
|
|
|
|
|
|
|
|
# Dolphin
|
2021-02-13 14:23:35 +00:00
|
|
|
bluez ffmpeg gettext portaudio wxGTK30 miniupnpc mbedtls lzo sfml gsm
|
2020-04-24 23:36:52 +00:00
|
|
|
wavpack orc nettle gmp pcre vulkan-loader
|
|
|
|
|
|
|
|
# DOSBox
|
|
|
|
SDL_net SDL_sound
|
|
|
|
|
|
|
|
# GOG
|
|
|
|
glib-networking
|
|
|
|
|
|
|
|
# Higan // TODO: "higan is not available for the x86_64 architecture"
|
|
|
|
|
|
|
|
# Libretro
|
|
|
|
fluidsynth hidapi mesa libdrm
|
|
|
|
|
|
|
|
# MAME
|
|
|
|
qt48 fontconfig SDL2_ttf
|
|
|
|
|
|
|
|
# Mednafen
|
|
|
|
freeglut mesa_glu
|
|
|
|
|
|
|
|
# MESS
|
|
|
|
expat
|
|
|
|
|
|
|
|
# Minecraft
|
|
|
|
nss
|
|
|
|
|
|
|
|
# Mupen64Plus
|
|
|
|
boost dash
|
|
|
|
|
|
|
|
# Osmose
|
|
|
|
qt4
|
|
|
|
|
|
|
|
# PPSSPP
|
|
|
|
glew snappy
|
|
|
|
|
|
|
|
# Redream // "redream is not available for the x86_64 architecture"
|
|
|
|
|
|
|
|
|
|
|
|
# rpcs3 // TODO: "error while loading shared libraries: libz.so.1..."
|
|
|
|
llvm
|
|
|
|
|
|
|
|
# ScummVM
|
|
|
|
nasm sndio
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# ResidualVM is now merged with ScummVM and therefore does not exist anymore
|
|
|
|
flac
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Snes9x
|
2021-12-06 16:07:01 +00:00
|
|
|
libepoxy minizip
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Vice
|
|
|
|
bison flex
|
|
|
|
|
|
|
|
# WINE
|
|
|
|
xorg.xrandr perl which p7zip gnused gnugrep psmisc opencl-headers
|
|
|
|
|
|
|
|
# ZDOOM
|
|
|
|
soundfont-fluid bzip2 game-music-emu
|
|
|
|
] ++ qt5Deps pkgs
|
2021-05-20 23:08:51 +00:00
|
|
|
++ gnomeDeps pkgs
|
2021-08-06 21:57:35 +00:00
|
|
|
++ lib.optional steamSupport pkgs.steam
|
|
|
|
++ extraPkgs pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
multiPkgs = pkgs: with pkgs; [
|
|
|
|
# Common
|
|
|
|
libsndfile libtheora libogg libvorbis libopus libGLU libpcap libpulseaudio
|
2020-05-03 17:38:23 +00:00
|
|
|
libao libevdev udev libgcrypt libxml2 libusb-compat-0_1 libpng libmpeg2 libv4l
|
2020-04-24 23:36:52 +00:00
|
|
|
libjpeg libxkbcommon libass libcdio libjack2 libsamplerate libzip libmad libaio
|
|
|
|
libcap libtiff libva libgphoto2 libxslt libsndfile giflib zlib glib
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib zziplib bash dbus keyutils zip cabextract freetype unzip coreutils
|
2020-04-24 23:36:52 +00:00
|
|
|
readline gcc SDL SDL2 curl graphite2 gtk2 gtk3 udev ncurses wayland libglvnd
|
2021-02-05 17:12:51 +00:00
|
|
|
vulkan-loader xdg-utils sqlite gnutls p11-kit libbsd harfbuzz
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# PCSX2 // TODO: "libgobject-2.0.so.0: wrong ELF class: ELFCLASS64"
|
|
|
|
|
|
|
|
# WINE
|
|
|
|
cups lcms2 mpg123 cairo unixODBC samba4 sane-backends openldap
|
2020-11-24 20:58:05 +00:00
|
|
|
ocl-icd util-linux libkrb5
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
# Proton
|
|
|
|
libselinux
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Winetricks
|
|
|
|
fribidi
|
2021-08-06 21:57:35 +00:00
|
|
|
] ++ xorgDeps pkgs
|
|
|
|
++ extraLibraries pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
ln -sf ${lutris-unwrapped}/share/applications $out/share
|
|
|
|
ln -sf ${lutris-unwrapped}/share/icons $out/share
|
|
|
|
'';
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (lutris-unwrapped.meta)
|
|
|
|
homepage
|
|
|
|
description
|
|
|
|
platforms
|
|
|
|
license
|
|
|
|
maintainers
|
|
|
|
broken;
|
|
|
|
|
|
|
|
mainProgram = "lutris";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|