xfce4-pulseaudio-plugin: init at 0.2.3

+37 -3
+1 -3
pkgs/desktops/xfce/default.nix
··· 79 79 xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { }; 80 80 xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { }; 81 81 xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { }; 82 - 83 82 xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { }; 84 83 xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { }; 85 84 xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { }; 86 85 xfce4_verve_plugin = callPackage ./panel-plugins/xfce4-verve-plugin.nix { }; 87 86 xfce4_xkb_plugin = callPackage ./panel-plugins/xfce4-xkb-plugin.nix { }; 88 - 89 87 xfce4_whiskermenu_plugin = callPackage ./panel-plugins/xfce4-whiskermenu-plugin.nix { }; 90 - 88 + xfce4_pulseaudio_plugin = callPackage ./panel-plugins/xfce4-pulseaudio-plugin.nix { }; 91 89 92 90 }; # xfce_self 93 91
+36
pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix
··· 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 + }