Merge pull request #206474 from SuperSandro2000/lutris-

This commit is contained in:
Sandro
2022-12-22 03:12:35 +01:00
committed by GitHub
+16 -17
View File
@@ -48,6 +48,7 @@
, fluidsynth
, xorgserver
, xorg
, util-linux
}:
let
@@ -68,22 +69,12 @@ let
xorgserver
xorg.setxkbmap
xorg.xkbcomp
# bypass mount suid wrapper which does not work in fhsenv
util-linux
];
binPath = lib.makeBinPath requiredTools;
gstDeps = with gst_all_1; [
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
];
in
buildPythonApplication rec {
pname = "lutris-original";
pname = "lutris-unwrapped";
version = "0.5.12";
src = fetchFromGitHub {
@@ -104,7 +95,14 @@ buildPythonApplication rec {
libnotify
pango
webkitgtk
] ++ gstDeps;
] ++ (with gst_all_1; [
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
]);
# See `install_requires` in https://github.com/lutris/lutris/blob/master/setup.py
propagatedBuildInputs = [
@@ -125,19 +123,20 @@ buildPythonApplication rec {
--replace "'libmagic.so.1'" "'${lib.getLib file}/lib/libmagic.so.1'"
'';
checkInputs = [ xvfb-run nose2 flake8 ] ++ requiredTools;
preCheck = "export HOME=$PWD";
checkPhase = ''
runHook preCheck
export HOME=$PWD
xvfb-run -s '-screen 0 800x600x24' make test
runHook postCheck
'';
# avoid double wrapping
dontWrapGApps = true;
makeWrapperArgs = [
"--prefix PATH : ${binPath}"
"--prefix PATH : ${lib.makeBinPath requiredTools}"
"\${gappsWrapperArgs[@]}"
];
# needed for glib-schemas to work correctly (will crash on dialogues otherwise)