lutris-unwrapped: 0.5.5 -> 0.5.6, fix dialouge crashing bug

would crash with:
```
GLib-GIO-ERROR **: 06:04:50.903: No GSettings schemas are installed on the system
```

if a dialouge box would open.
This commit is contained in:
Jonathan Ringer 2020-06-24 23:08:25 -07:00 committed by Jon
parent 860ab67458
commit 37238ff716

View File

@ -1,9 +1,42 @@
{ buildPythonApplication, lib, fetchFromGitHub, fetchpatch { buildPythonApplication, lib, fetchFromGitHub, fetchpatch
, wrapGAppsHook, gobject-introspection, glib-networking, gnome-desktop, libnotify, libgnome-keyring, pango
, gdk-pixbuf, atk, webkitgtk, gst_all_1 # build inputs
, dbus-python, evdev, pyyaml, pygobject3, requests, pillow , atk
, xrandr, pciutils, psmisc, glxinfo, vulkan-tools, xboxdrv, pulseaudio, p7zip, xgamma , gdk-pixbuf
, libstrangle, wine, fluidsynth, xorgserver , glib-networking
, gnome-desktop
, gobject-introspection
, gst_all_1
, gtk3
, libgnome-keyring
, libnotify
, pango
, webkitgtk
, wrapGAppsHook
# python dependencies
, dbus-python
, distro
, evdev
, pillow
, pygobject3
, pyyaml
, requests
# commands that lutris needs
, xrandr
, pciutils
, psmisc
, glxinfo
, vulkan-tools
, xboxdrv
, pulseaudio
, p7zip
, xgamma
, libstrangle
, wine
, fluidsynth
, xorgserver
}: }:
let let
@ -25,34 +58,52 @@ let
]; ];
gstDeps = with gst_all_1; [ gstDeps = with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
gst-libav gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
]; ];
in buildPythonApplication rec { in buildPythonApplication rec {
pname = "lutris-original"; pname = "lutris-original";
version = "0.5.5"; version = "0.5.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lutris"; owner = "lutris";
repo = "lutris"; repo = "lutris";
rev = "v${version}"; rev = "v${version}";
sha256 = "1g093g0difnkjmnm91p20issdsxn9ri4c56zzddj5wfrbmhwdfag"; sha256 = "1f78qhyy8xqdg0rhxcwkap1bmg5mfxhb8qw1vbpxr6g62ajpwksa";
}; };
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [ buildInputs = [
gobject-introspection glib-networking gnome-desktop libnotify libgnome-keyring pango atk
gdk-pixbuf atk webkitgtk gdk-pixbuf
glib-networking
gnome-desktop
gobject-introspection
gtk3
libgnome-keyring
libnotify
pango
webkitgtk
] ++ gstDeps; ] ++ gstDeps;
makeWrapperArgs = [ propagatedBuildInputs = [
"--prefix PATH : ${binPath}" evdev distro pyyaml pygobject3 requests pillow dbus-python
]; ];
propagatedBuildInputs = [ # avoid double wrapping
evdev pyyaml pygobject3 requests pillow dbus-python dontWrapGApps = true;
makeWrapperArgs = [
"--prefix PATH : ${binPath}"
''''${gappsWrapperArgs[@]}''
]; ];
# needed for glib-schemas to work correctly (will crash on dialogues otherwise)
# see https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
preCheck = "export HOME=$PWD"; preCheck = "export HOME=$PWD";