eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
153 lines
2.5 KiB
Nix
153 lines
2.5 KiB
Nix
{ buildPythonApplication
|
|
, lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
|
|
# build inputs
|
|
, atk
|
|
, file
|
|
, gdk-pixbuf
|
|
, glib-networking
|
|
, gnome-desktop
|
|
, gobject-introspection
|
|
, gst_all_1
|
|
, gtk3
|
|
, libnotify
|
|
, pango
|
|
, webkitgtk
|
|
, wrapGAppsHook3
|
|
|
|
# check inputs
|
|
, xvfb-run
|
|
, nose2
|
|
, flake8
|
|
|
|
# python dependencies
|
|
, certifi
|
|
, dbus-python
|
|
, distro
|
|
, evdev
|
|
, lxml
|
|
, pillow
|
|
, pygobject3
|
|
, pypresence
|
|
, pyyaml
|
|
, requests
|
|
, protobuf
|
|
, moddb
|
|
|
|
# commands that lutris needs
|
|
, xrandr
|
|
, pciutils
|
|
, psmisc
|
|
, glxinfo
|
|
, vulkan-tools
|
|
, xboxdrv
|
|
, pulseaudio
|
|
, p7zip
|
|
, xgamma
|
|
, libstrangle
|
|
, fluidsynth
|
|
, xorgserver
|
|
, xorg
|
|
, util-linux
|
|
}:
|
|
|
|
let
|
|
# See lutris/util/linux.py
|
|
requiredTools = [
|
|
xrandr
|
|
pciutils
|
|
psmisc
|
|
glxinfo
|
|
vulkan-tools
|
|
xboxdrv
|
|
pulseaudio
|
|
p7zip
|
|
xgamma
|
|
libstrangle
|
|
fluidsynth
|
|
xorgserver
|
|
xorg.setxkbmap
|
|
xorg.xkbcomp
|
|
# bypass mount suid wrapper which does not work in fhsenv
|
|
util-linux
|
|
];
|
|
in
|
|
buildPythonApplication rec {
|
|
pname = "lutris-unwrapped";
|
|
version = "0.5.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lutris";
|
|
repo = "lutris";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ed1bhugBe97XmY050A5jCPcnLj0Fd7qPX2p/Ab+YbOE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
|
|
buildInputs = [
|
|
atk
|
|
gdk-pixbuf
|
|
glib-networking
|
|
gnome-desktop
|
|
gtk3
|
|
libnotify
|
|
pango
|
|
webkitgtk
|
|
] ++ (with gst_all_1; [
|
|
gst-libav
|
|
gst-plugins-bad
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
gstreamer
|
|
]);
|
|
|
|
# See `install_requires` in https://github.com/lutris/lutris/blob/master/setup.py
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
dbus-python
|
|
distro
|
|
evdev
|
|
lxml
|
|
pillow
|
|
pygobject3
|
|
pypresence
|
|
pyyaml
|
|
requests
|
|
protobuf
|
|
moddb
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lutris/util/magic.py \
|
|
--replace "'libmagic.so.1'" "'${lib.getLib file}/lib/libmagic.so.1'"
|
|
'';
|
|
|
|
nativeCheckInputs = [ xvfb-run nose2 flake8 ] ++ requiredTools;
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
export HOME=$PWD
|
|
xvfb-run -s '-screen 0 800x600x24' make test
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
# avoid double wrapping
|
|
dontWrapGApps = true;
|
|
makeWrapperArgs = [
|
|
"--prefix PATH : ${lib.makeBinPath requiredTools}"
|
|
"\${gappsWrapperArgs[@]}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://lutris.net";
|
|
description = "Open Source gaming platform for GNU/Linux";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ Madouura ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "lutris";
|
|
};
|
|
}
|