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:
parent
212e90ce91
commit
7547f3c0ab
1 changed files with 10 additions and 3 deletions
|
@ -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 {
|
buildGoModule rec {
|
||||||
pname = "nwg-bar";
|
pname = "nwg-bar";
|
||||||
|
@ -19,9 +26,9 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorHash = "sha256-mqcXhnja8ed7vXIqOKBsNrcbrcaycTQXG1jqdc6zcyI=";
|
vendorHash = "sha256-mqcXhnja8ed7vXIqOKBsNrcbrcaycTQXG1jqdc6zcyI=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [ gtk3 gtk-layer-shell ];
|
buildInputs = [ gtk3 gtk-layer-shell librsvg ];
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
mkdir -p $out/share/nwg-bar
|
mkdir -p $out/share/nwg-bar
|
||||||
|
|
Loading…
Reference in a new issue