2020-03-21 04:08:42 +00:00
|
|
|
{ buildPythonApplication, lib, fetchFromGitHub, fetchpatch
|
2020-06-25 06:08:25 +00:00
|
|
|
|
|
|
|
# build inputs
|
|
|
|
, atk
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib-networking
|
|
|
|
, gnome-desktop
|
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, pango
|
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
|
|
|
# python dependencies
|
|
|
|
, dbus-python
|
|
|
|
, distro
|
|
|
|
, evdev
|
|
|
|
, pillow
|
|
|
|
, pygobject3
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2020-08-21 12:39:46 +00:00
|
|
|
, keyring
|
2020-06-25 06:08:25 +00:00
|
|
|
|
|
|
|
# commands that lutris needs
|
|
|
|
, xrandr
|
|
|
|
, pciutils
|
|
|
|
, psmisc
|
|
|
|
, glxinfo
|
|
|
|
, vulkan-tools
|
|
|
|
, xboxdrv
|
|
|
|
, pulseaudio
|
|
|
|
, p7zip
|
|
|
|
, xgamma
|
|
|
|
, libstrangle
|
|
|
|
, wine
|
|
|
|
, fluidsynth
|
|
|
|
, xorgserver
|
2020-07-07 19:34:16 +00:00
|
|
|
, xorg
|
2019-07-18 09:32:39 +00:00
|
|
|
}:
|
2018-06-15 18:17:43 +00:00
|
|
|
|
|
|
|
let
|
2019-07-18 09:32:39 +00:00
|
|
|
# See lutris/util/linux.py
|
2019-07-18 09:42:28 +00:00
|
|
|
binPath = lib.makeBinPath [
|
2019-07-18 09:32:39 +00:00
|
|
|
xrandr
|
|
|
|
pciutils
|
|
|
|
psmisc
|
|
|
|
glxinfo
|
|
|
|
vulkan-tools
|
|
|
|
xboxdrv
|
|
|
|
pulseaudio
|
|
|
|
p7zip
|
|
|
|
xgamma
|
|
|
|
libstrangle
|
|
|
|
wine
|
|
|
|
fluidsynth
|
2019-07-18 09:42:28 +00:00
|
|
|
xorgserver
|
2020-07-07 19:34:16 +00:00
|
|
|
xorg.setxkbmap
|
lutris: add xorg.xkbcomp
```
Traceback (most recent call last):
File "/nix/store/v1mzyrrnmm9xm7mhqps6pdxdyvkgb154-lutris-original-0.5.6/lib/python3.8/site-packages/lutris/exceptions.py", line 36, in wrapper
return function(*args, **kwargs)
File "/nix/store/v1mzyrrnmm9xm7mhqps6pdxdyvkgb154-lutris-original-0.5.6/lib/python3.8/site-packages/lutris/game.py", line 430, in configure_game
xkbcomp = subprocess.Popen(xkbcomp_command, stdin=subprocess.PIPE)
File "/nix/store/f87w21b91cws0wbsvyfn5vnlyv491czi-python3-3.8.3/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/nix/store/f87w21b91cws0wbsvyfn5vnlyv491czi-python3-3.8.3/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'xkbcomp'
```
2020-07-08 00:17:16 +00:00
|
|
|
xorg.xkbcomp
|
2019-07-18 09:42:28 +00:00
|
|
|
];
|
2019-07-18 09:32:39 +00:00
|
|
|
|
|
|
|
gstDeps = with gst_all_1; [
|
2018-06-15 18:17:43 +00:00
|
|
|
gst-libav
|
2020-06-25 06:08:25 +00:00
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gstreamer
|
2018-06-15 18:17:43 +00:00
|
|
|
];
|
|
|
|
|
2019-07-18 09:32:39 +00:00
|
|
|
in buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lutris-original";
|
2020-08-21 12:39:46 +00:00
|
|
|
version = "0.5.7.1";
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2019-07-18 09:32:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lutris";
|
|
|
|
repo = "lutris";
|
|
|
|
rev = "v${version}";
|
2020-08-21 12:39:46 +00:00
|
|
|
sha256 = "12ispwkbbm5aq263n3bdjmjfkpwplizacnqs2c0wnag4zj4kpm29";
|
2019-07-18 09:32:39 +00:00
|
|
|
};
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2020-01-24 20:08:08 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
2019-07-18 09:32:39 +00:00
|
|
|
buildInputs = [
|
2020-06-25 06:08:25 +00:00
|
|
|
atk
|
|
|
|
gdk-pixbuf
|
|
|
|
glib-networking
|
|
|
|
gnome-desktop
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
libnotify
|
|
|
|
pango
|
|
|
|
webkitgtk
|
2019-07-18 09:32:39 +00:00
|
|
|
] ++ gstDeps;
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2020-06-25 06:08:25 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-08-21 12:39:46 +00:00
|
|
|
evdev distro pyyaml pygobject3 requests pillow dbus-python keyring
|
2019-07-18 09:32:39 +00:00
|
|
|
];
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2020-06-25 06:08:25 +00:00
|
|
|
# avoid double wrapping
|
|
|
|
dontWrapGApps = true;
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix PATH : ${binPath}"
|
|
|
|
''''${gappsWrapperArgs[@]}''
|
2019-07-18 09:32:39 +00:00
|
|
|
];
|
2020-06-25 06:08:25 +00:00
|
|
|
# needed for glib-schemas to work correctly (will crash on dialogues otherwise)
|
|
|
|
# see https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2019-07-18 09:32:39 +00:00
|
|
|
preCheck = "export HOME=$PWD";
|
2018-06-15 18:17:43 +00:00
|
|
|
|
2019-07-18 09:32:39 +00: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 18:17:43 +00:00
|
|
|
};
|
|
|
|
}
|