From 7547f3c0ab0b072b2ab6e3e30d1ae837883c0a18 Mon Sep 17 00:00:00 2001 From: Felix Uhl Date: Fri, 25 Aug 2023 11:04:10 +0200 Subject: [PATCH] nwg-bar: Fix display of svg icons nwg-bar ships with default icons in SVG format, but they can't be displayed, see https://github.com/nwg-piotr/nwg-bar/issues/23. Using wrapGAppsHook and adding librsvg to the dependencies should fix this, see https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gdk-pixbuf --- pkgs/applications/misc/nwg-bar/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/nwg-bar/default.nix b/pkgs/applications/misc/nwg-bar/default.nix index 4dec8077d94a..0c30fac6a5ba 100644 --- a/pkgs/applications/misc/nwg-bar/default.nix +++ b/pkgs/applications/misc/nwg-bar/default.nix @@ -1,4 +1,11 @@ -{ lib, buildGoModule, fetchFromGitHub, pkg-config, gtk3, gtk-layer-shell }: +{ lib +, buildGoModule +, fetchFromGitHub +, librsvg +, pkg-config +, gtk3 +, gtk-layer-shell +, wrapGAppsHook }: buildGoModule rec { pname = "nwg-bar"; @@ -19,9 +26,9 @@ buildGoModule rec { vendorHash = "sha256-mqcXhnja8ed7vXIqOKBsNrcbrcaycTQXG1jqdc6zcyI="; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config wrapGAppsHook ]; - buildInputs = [ gtk3 gtk-layer-shell ]; + buildInputs = [ gtk3 gtk-layer-shell librsvg ]; preInstall = '' mkdir -p $out/share/nwg-bar