2019-07-18 11:32:39 +02:00
|
|
|
{ buildPythonApplication, lib, fetchFromGitHub
|
|
|
|
, wrapGAppsHook, gobject-introspection, gnome-desktop, libnotify, libgnome-keyring, pango
|
2019-05-22 13:03:39 +02:00
|
|
|
, gdk-pixbuf, atk, webkitgtk, gst_all_1
|
2019-07-18 11:32:39 +02:00
|
|
|
, evdev, pyyaml, pygobject3, requests, pillow
|
|
|
|
, xrandr, pciutils, psmisc, glxinfo, vulkan-tools, xboxdrv, pulseaudio, p7zip, xgamma
|
2019-07-18 11:42:28 +02:00
|
|
|
, libstrangle, wine, fluidsynth, xorgserver
|
2019-07-18 11:32:39 +02:00
|
|
|
}:
|
2018-06-15 20:17:43 +02:00
|
|
|
|
|
|
|
let
|
2019-07-18 11:32:39 +02:00
|
|
|
# See lutris/util/linux.py
|
2019-07-18 11:42:28 +02:00
|
|
|
binPath = lib.makeBinPath [
|
2019-07-18 11:32:39 +02:00
|
|
|
xrandr
|
|
|
|
pciutils
|
|
|
|
psmisc
|
|
|
|
glxinfo
|
|
|
|
vulkan-tools
|
|
|
|
xboxdrv
|
|
|
|
pulseaudio
|
|
|
|
p7zip
|
|
|
|
xgamma
|
|
|
|
libstrangle
|
|
|
|
wine
|
|
|
|
fluidsynth
|
2019-07-18 11:42:28 +02:00
|
|
|
xorgserver
|
|
|
|
];
|
2019-07-18 11:32:39 +02:00
|
|
|
|
|
|
|
gstDeps = with gst_all_1; [
|
2018-06-15 20:17:43 +02:00
|
|
|
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
|
|
|
|
gst-libav
|
|
|
|
];
|
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
in buildPythonApplication rec {
|
|
|
|
name = "lutris-original-${version}";
|
|
|
|
version = "0.5.2.1";
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lutris";
|
|
|
|
repo = "lutris";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "023yqnzmnkfpq21r6ky6jzwbjxjcw1a5zqrrdl6fwwlr78fdhgpv";
|
|
|
|
};
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
buildInputs = [
|
|
|
|
wrapGAppsHook gobject-introspection gnome-desktop libnotify libgnome-keyring pango
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf atk webkitgtk
|
2019-07-18 11:32:39 +02:00
|
|
|
] ++ gstDeps;
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix PATH : ${binPath}"
|
|
|
|
];
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
evdev pyyaml pygobject3 requests pillow
|
|
|
|
];
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02:00
|
|
|
preCheck = "export HOME=$PWD";
|
2018-06-15 20:17:43 +02:00
|
|
|
|
2019-07-18 11:32:39 +02: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 20:17:43 +02:00
|
|
|
};
|
|
|
|
}
|
2019-07-18 11:32:39 +02:00
|
|
|
|