@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, unzip, autoconf, automake, pkgconfig, gnome_icon_theme, avahi, gtk3, libnotify, pulseaudio, x11}:
1+{stdenv, fetchurl, unzip, autoconf, automake, makeWrapper, pkgconfig, gnome_icon_theme, avahi, gtk3, libnotify, pulseaudio, x11}:
22
33stdenv.mkDerivation rec {
44 name = "pasystray-0.4.0";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 sha256 = "1gpb7yqcxqglv50iqbkg2lg3r0z07jm4ir2zqmvns6sgddks590w";
99 };
1010
11− buildInputs = [ unzip autoconf automake pkgconfig gnome_icon_theme avahi gtk3 libnotify pulseaudio x11 ];
11+ buildInputs = [ unzip autoconf automake makeWrapper pkgconfig gnome_icon_theme avahi gtk3 libnotify pulseaudio x11 ];
1212
1313 preConfigure = ''
1414 aclocal
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
1717 automake --add-missing
1818 '';
1919
20+ preFixup = ''
21+ wrapProgram "$out/bin/pasystray" \
22+ --prefix XDG_DATA_DIRS : "${gnome_icon_theme}/share:$GSETTINGS_SCHEMAS_PATH"
23+ '';
24+
2025 meta = with stdenv.lib; {
2126 description = "PulseAudio system tray";
2227 homepage = "https://github.com/christophgysin/pasystray";