Commit 7547f3c0 authored by Felix Uhl's avatar Felix Uhl
Browse files

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
parent 212e90ce
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
{ 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