about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-05 12:24:21 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-05 12:24:21 +0200
commitd021560e6ffcd54452b34fdee071663228096f95 (patch)
tree5794cbddd3f9575291478c34c864a2e9f93abcf8 /pkgs/applications/audio
parentded4e0b5d01d93d5bef830f81992b3e2025c2868 (diff)
downloadnixlib-d021560e6ffcd54452b34fdee071663228096f95.tar
nixlib-d021560e6ffcd54452b34fdee071663228096f95.tar.gz
nixlib-d021560e6ffcd54452b34fdee071663228096f95.tar.bz2
nixlib-d021560e6ffcd54452b34fdee071663228096f95.tar.lz
nixlib-d021560e6ffcd54452b34fdee071663228096f95.tar.xz
nixlib-d021560e6ffcd54452b34fdee071663228096f95.tar.zst
nixlib-d021560e6ffcd54452b34fdee071663228096f95.zip
quodlibet: fix build
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/quodlibet/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/audio/quodlibet/default.nix b/pkgs/applications/audio/quodlibet/default.nix
index 49b320703d13..71ab62e65bcf 100644
--- a/pkgs/applications/audio/quodlibet/default.nix
+++ b/pkgs/applications/audio/quodlibet/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, python3, wrapGAppsHook, gettext, libsoup, gnome, gtk3, gdk-pixbuf, librsvg,
+{ lib, fetchurl, fetchpatch, python3, wrapGAppsHook, gettext, libsoup, gnome, gtk3, gdk-pixbuf, librsvg,
   tag ? "", xvfb-run, dbus, glibcLocales, glib, glib-networking, gobject-introspection, hicolor-icon-theme,
   gst_all_1, withGstPlugins ? true,
   xineBackend ? false, xine-lib,
@@ -16,11 +16,19 @@ python3.pkgs.buildPythonApplication rec {
     sha256 = "sha256-MBYVgp9lLLr+2zVTkjcWKli8HucaVn0kn3eJ2SaCRbw=";
   };
 
-  nativeBuildInputs = [ wrapGAppsHook gettext ];
+  patches = [
+    (fetchpatch {
+      # Fixes cover globbing under python 3.10.5+
+      url = "https://github.com/quodlibet/quodlibet/commit/5eb7c30766e1dcb30663907664855ee94a3accc0.patch";
+      hash = "sha256-bDyEOE7Vs4df4BeN4QMvt6niisVEpvc1onmX5rtoAWc=";
+    })
+  ];
+
+  nativeBuildInputs = [ wrapGAppsHook gettext gobject-introspection ];
 
   checkInputs = [ gdk-pixbuf hicolor-icon-theme ] ++ (with python3.pkgs; [ pytest pytest-xdist polib xvfb-run dbus.daemon glibcLocales ]);
 
-  buildInputs = [ gnome.adwaita-icon-theme libsoup glib glib-networking gtk3 webkitgtk gdk-pixbuf keybinder3 gtksourceview libmodplug libappindicator-gtk3 kakasi gobject-introspection ]
+  buildInputs = [ gnome.adwaita-icon-theme libsoup glib glib-networking gtk3 webkitgtk gdk-pixbuf keybinder3 gtksourceview libmodplug libappindicator-gtk3 kakasi ]
     ++ (if xineBackend then [ xine-lib ] else with gst_all_1;
     [ gstreamer gst-plugins-base ] ++ optionals withGstPlugins [ gst-plugins-good gst-plugins-ugly gst-plugins-bad ]);