From b00f6cde8817b6a269b9d61aed954ea7c794406e Mon Sep 17 00:00:00 2001 From: Richard Wallace Date: Sat, 6 Dec 2014 15:50:26 -0700 Subject: [PATCH] wrap pasystray to provide XDG_DATA_DIRS so tray icon displays correctly --- pkgs/tools/audio/pasystray/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/audio/pasystray/default.nix b/pkgs/tools/audio/pasystray/default.nix index 500c8add4c6..42a2c9c3a12 100644 --- a/pkgs/tools/audio/pasystray/default.nix +++ b/pkgs/tools/audio/pasystray/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, unzip, autoconf, automake, pkgconfig, gnome_icon_theme, avahi, gtk3, libnotify, pulseaudio, x11}: +{stdenv, fetchurl, unzip, autoconf, automake, makeWrapper, pkgconfig, gnome_icon_theme, avahi, gtk3, libnotify, pulseaudio, x11}: stdenv.mkDerivation rec { name = "pasystray-0.4.0"; @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1gpb7yqcxqglv50iqbkg2lg3r0z07jm4ir2zqmvns6sgddks590w"; }; - buildInputs = [ unzip autoconf automake pkgconfig gnome_icon_theme avahi gtk3 libnotify pulseaudio x11 ]; + buildInputs = [ unzip autoconf automake makeWrapper pkgconfig gnome_icon_theme avahi gtk3 libnotify pulseaudio x11 ]; preConfigure = '' aclocal @@ -17,6 +17,11 @@ stdenv.mkDerivation rec { automake --add-missing ''; + preFixup = '' + wrapProgram "$out/bin/pasystray" \ + --prefix XDG_DATA_DIRS : "${gnome_icon_theme}/share:$GSETTINGS_SCHEMAS_PATH" + ''; + meta = with stdenv.lib; { description = "PulseAudio system tray"; homepage = "https://github.com/christophgysin/pasystray";