nixpkgs/pkgs/applications/misc/lutris/default.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

2020-03-21 04:08:42 +00:00
{ buildPythonApplication, lib, fetchFromGitHub, fetchpatch
2020-01-24 20:08:08 +00:00
, wrapGAppsHook, gobject-introspection, glib-networking, gnome-desktop, libnotify, libgnome-keyring, pango
2019-05-22 12:03:39 +01:00
, gdk-pixbuf, atk, webkitgtk, gst_all_1
2020-04-04 21:48:45 +01:00
, dbus-python, evdev, pyyaml, pygobject3, requests, pillow
, xrandr, pciutils, psmisc, glxinfo, vulkan-tools, xboxdrv, pulseaudio, p7zip, xgamma
, libstrangle, wine, fluidsynth, xorgserver
}:
let
# See lutris/util/linux.py
binPath = lib.makeBinPath [
xrandr
pciutils
psmisc
glxinfo
vulkan-tools
xboxdrv
pulseaudio
p7zip
xgamma
libstrangle
wine
fluidsynth
xorgserver
];
gstDeps = with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
gst-libav
];
in buildPythonApplication rec {
pname = "lutris-original";
2020-04-04 21:48:45 +01:00
version = "0.5.5";
src = fetchFromGitHub {
owner = "lutris";
repo = "lutris";
rev = "v${version}";
2020-04-04 21:48:45 +01:00
sha256 = "1g093g0difnkjmnm91p20issdsxn9ri4c56zzddj5wfrbmhwdfag";
};
2020-01-24 20:08:08 +00:00
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [
2020-01-24 20:08:08 +00:00
gobject-introspection glib-networking gnome-desktop libnotify libgnome-keyring pango
2019-05-22 12:03:39 +01:00
gdk-pixbuf atk webkitgtk
] ++ gstDeps;
makeWrapperArgs = [
"--prefix PATH : ${binPath}"
];
propagatedBuildInputs = [
2020-04-04 21:48:45 +01:00
evdev pyyaml pygobject3 requests pillow dbus-python
];
preCheck = "export HOME=$PWD";
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;
};
}