2019-07-18 10:32:39 +01:00
|
|
|
{ buildPythonApplication, lib, fetchFromGitHub
|
|
|
|
, wrapGAppsHook, gobject-introspection, gnome-desktop, libnotify, libgnome-keyring, pango
|
|
|
|
, gdk_pixbuf, atk, webkitgtk, gst_all_1
|
|
|
|
, evdev, pyyaml, pygobject3, requests, pillow
|
|
|
|
, xrandr, pciutils, psmisc, glxinfo, vulkan-tools, xboxdrv, pulseaudio, p7zip, xgamma
|
|
|
|
, libstrangle, wine, fluidsynth
|
|
|
|
, optimusSupport ? false, primus, bumblebee
|
|
|
|
, nvidiaSmiSupport ? false, nvidia_x11
|
|
|
|
, steamSupport ? true, steam
|
|
|
|
}:
|
2018-06-15 19:17:43 +01:00
|
|
|
|
|
|
|
let
|
2019-07-18 10:32:39 +01:00
|
|
|
# See lutris/util/linux.py
|
|
|
|
binPath = lib.makeBinPath ([
|
|
|
|
xrandr
|
|
|
|
pciutils
|
|
|
|
psmisc
|
|
|
|
glxinfo
|
|
|
|
vulkan-tools
|
|
|
|
xboxdrv
|
|
|
|
pulseaudio
|
|
|
|
p7zip
|
|
|
|
xgamma
|
|
|
|
libstrangle
|
|
|
|
wine
|
|
|
|
fluidsynth
|
|
|
|
] ++ lib.optionals optimusSupport [ primus bumblebee ]
|
|
|
|
++ lib.optional nvidiaSmiSupport nvidia_x11
|
|
|
|
++ lib.optional steamSupport steam);
|
|
|
|
|
|
|
|
gstDeps = with gst_all_1; [
|
2018-06-15 19:17:43 +01:00
|
|
|
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
|
|
|
|
gst-libav
|
|
|
|
];
|
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
in buildPythonApplication rec {
|
|
|
|
name = "lutris-original-${version}";
|
|
|
|
version = "0.5.2.1";
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lutris";
|
|
|
|
repo = "lutris";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "023yqnzmnkfpq21r6ky6jzwbjxjcw1a5zqrrdl6fwwlr78fdhgpv";
|
|
|
|
};
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
buildInputs = [
|
|
|
|
wrapGAppsHook gobject-introspection gnome-desktop libnotify libgnome-keyring pango
|
|
|
|
gdk_pixbuf atk webkitgtk
|
|
|
|
] ++ gstDeps;
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix PATH : ${binPath}"
|
|
|
|
];
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
evdev pyyaml pygobject3 requests pillow
|
|
|
|
];
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
preCheck = "export HOME=$PWD";
|
2018-06-15 19:17:43 +01:00
|
|
|
|
2019-07-18 10:32:39 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://lutris.net";
|
|
|
|
description = "Open Source gaming platform for GNU/Linux";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ chiiruno ];
|
|
|
|
platforms = platforms.linux;
|
2018-06-15 19:17:43 +01:00
|
|
|
};
|
|
|
|
}
|
2019-07-18 10:32:39 +01:00
|
|
|
|