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
This commit is contained in:
Felix Uhl 2023-08-25 11:04:10 +02:00
parent 212e90ce91
commit 7547f3c0ab

View file

@ -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