@@ -0,0 +1,36 @@
1+{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4panel_gtk3, xfconf
2+, gtk3, libpulseaudio
3+, withKeybinder ? true, keybinder3
4+, withLibnotify ? true, libnotify
5+}:
6+
7+assert withKeybinder -> keybinder3 != null;
8+assert withLibnotify -> libnotify != null;
9+
10+with stdenv.lib;
11+
12+stdenv.mkDerivation rec {
13+ p_name = "xfce4-pulseaudio-plugin";
14+ ver_maj = "0.2";
15+ ver_min = "3";
16+
17+ src = fetchurl {
18+ url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2";
19+ sha256 = "e82836bc8cf7d905b4e60d43dc630ba8e32dea785989700c71d4aeee9f583b33";
20+ };
21+ name = "${p_name}-${ver_maj}.${ver_min}";
22+
23+ nativeBuildInputs = [ pkgconfig intltool ];
24+ buildInputs = [ libxfce4util xfce4panel_gtk3 xfconf gtk3 libpulseaudio ]
25+ ++ optional withKeybinder keybinder3
26+ ++ optional withLibnotify libnotify;
27+
28+ preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
29+
30+ meta = {
31+ homepage = "http://goodies.xfce.org/projects/panel-plugins/${p_name}";
32+ description = "Adjust the audio volume of the PulseAudio sound system";
33+ platforms = platforms.linux;
34+ maintainers = [ ];
35+ };
36+}