diff options
Diffstat (limited to 'pkgs/applications/misc/lutris/default.nix')
-rw-r--r-- | pkgs/applications/misc/lutris/default.nix | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/misc/lutris/default.nix b/pkgs/applications/misc/lutris/default.nix index fed9d245c190..0446c694fe0d 100644 --- a/pkgs/applications/misc/lutris/default.nix +++ b/pkgs/applications/misc/lutris/default.nix @@ -4,6 +4,7 @@ # build inputs , atk +, file , gdk-pixbuf , glib-networking , gnome-desktop @@ -17,7 +18,7 @@ # check inputs , xvfb-run -, nose +, nose2 , flake8 # python dependencies @@ -83,13 +84,13 @@ let in buildPythonApplication rec { pname = "lutris-original"; - version = "0.5.9.1"; + version = "0.5.10"; src = fetchFromGitHub { owner = "lutris"; repo = "lutris"; rev = "v${version}"; - sha256 = "sha256-ykPJneCKbFKv0x/EDo9PkRb1LkMeFeYzTDmvE3ShNe0="; + sha256 = "sha256-PrnULCdQXNZ9OTa00NVyqiTdKRRkAYBcDj7lMwEqkw4="; }; nativeBuildInputs = [ wrapGAppsHook ]; @@ -103,6 +104,7 @@ buildPythonApplication rec { libnotify pango webkitgtk + python_magic ] ++ gstDeps; propagatedBuildInputs = [ @@ -118,7 +120,13 @@ buildPythonApplication rec { python_magic ]; - checkInputs = [ xvfb-run nose flake8 ] ++ requiredTools; + postPatch = '' + substituteInPlace lutris/util/magic.py \ + --replace "'libmagic.so.1'" "'${lib.getLib file}/lib/libmagic.so.1'" + ''; + + + checkInputs = [ xvfb-run nose2 flake8 ] ++ requiredTools; preCheck = "export HOME=$PWD"; checkPhase = '' runHook preCheck @@ -126,12 +134,6 @@ buildPythonApplication rec { runHook postCheck ''; - # unhardcodes xrandr and fixes nosetests - # upstream in progress: https://github.com/lutris/lutris/pull/3754 - patches = [ - ./fixes.patch - ]; - # avoid double wrapping dontWrapGApps = true; makeWrapperArgs = [ |