From 2ea5615f89aeabdea265854d89a0fe9df68be853 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 29 Jun 2023 17:53:10 +0800 Subject: [PATCH] pantheon.wingpanel-indicator-bluetooth: Backport gresource path patch To fix missing icon on wingpanel. --- .../desktop/wingpanel-indicators/bluetooth/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix index c9e20879ec53..8f00b01ee331 100644 --- a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix +++ b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , nix-update-script , pkg-config , meson @@ -27,6 +28,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-t8Sn8NQW7WueinPkJdn8hd0oCJ3uFeRJliggSFHoaZU="; }; + patches = [ + # Prevent a race that skips automatic resource loading + # https://github.com/elementary/wingpanel-indicator-bluetooth/issues/203 + (fetchpatch { + url = "https://github.com/elementary/wingpanel-indicator-bluetooth/commit/4f9237c0cb1152a696ccdd2a2fc83fc706f54d62.patch"; + sha256 = "sha256-fUnqw0EAWvtpoo2wI++2B5kXNqQPxnsjPbZ7O30lXBI="; + }) + ]; + nativeBuildInputs = [ glib # for glib-compile-schemas libxml2