3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/lutris/default.nix

134 lines
2.1 KiB
Nix
Raw Normal View History

2021-07-03 13:46:45 +01:00
{ buildPythonApplication
, lib
, fetchFromGitHub
2021-07-03 13:46:45 +01:00
# build inputs
, atk
, gdk-pixbuf
, glib-networking
, gnome-desktop
, gobject-introspection
, gst_all_1
, gtk3
, libnotify
, pango
, webkitgtk
, wrapGAppsHook
2021-07-03 13:46:45 +01:00
# python dependencies
, dbus-python
, distro
, evdev
2021-04-03 08:24:37 +01:00
, lxml
, pillow
, pygobject3
, pyyaml
, requests
2020-08-21 13:39:46 +01:00
, keyring
2021-04-03 08:24:37 +01:00
, python_magic
2021-07-03 13:46:45 +01:00
# commands that lutris needs
, xrandr
, pciutils
, psmisc
, glxinfo
, vulkan-tools
, xboxdrv
, pulseaudio
, p7zip
, xgamma
, libstrangle
, wine
, fluidsynth
, xorgserver
2020-07-07 20:34:16 +01:00
, xorg
}:
let
# See lutris/util/linux.py
binPath = lib.makeBinPath [
xrandr
pciutils
psmisc
glxinfo
vulkan-tools
xboxdrv
pulseaudio
p7zip
xgamma
libstrangle
wine
fluidsynth
xorgserver
2020-07-07 20:34:16 +01:00
xorg.setxkbmap
xorg.xkbcomp
];
gstDeps = with gst_all_1; [
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
];
2021-07-03 13:46:45 +01:00
in
buildPythonApplication rec {
pname = "lutris-original";
2021-07-03 13:46:45 +01:00
version = "0.5.8.4";
src = fetchFromGitHub {
owner = "lutris";
repo = "lutris";
rev = "v${version}";
2021-07-03 13:46:45 +01:00
sha256 = "sha256-5ivXIgDyM9PRvuUhPFPgziXDvggcL+p65kI2yOaiS1M=";
};
2020-01-24 20:08:08 +00:00
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [
atk
gdk-pixbuf
glib-networking
gnome-desktop
gobject-introspection
gtk3
libnotify
pango
webkitgtk
] ++ gstDeps;
propagatedBuildInputs = [
2021-04-03 08:24:37 +01:00
evdev
distro
lxml
pyyaml
pygobject3
requests
pillow
dbus-python
keyring
python_magic
];
# avoid double wrapping
dontWrapGApps = true;
makeWrapperArgs = [
"--prefix PATH : ${binPath}"
"\${gappsWrapperArgs[@]}"
];
# needed for glib-schemas to work correctly (will crash on dialogues otherwise)
# see https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
preCheck = "export HOME=$PWD";
meta = with lib; {
homepage = "https://lutris.net";
description = "Open Source gaming platform for GNU/Linux";
2021-04-03 08:24:37 +01:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ chiiruno ];
platforms = platforms.linux;
};
}