git.iko.soy/typeable/nixpkgs
on master help sign in
xfce4-pulseaudio-plugin: init at 0.2.3
commit1736cedc202bd22d5c9bbf5208c287faa45aed1f authorDemin Dmitriy <demindf@gmail.com> dateSun 1 Nov 2015, 07:01 (11 years ago) parentb030236
2 files changed+37−3
pkgs/desktops/xfce/default.nix+1−3 pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix+36
pkgs/desktops/xfce/default.nix+1−3
@@ -79,15 +79,13 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
7979 xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { };
8080 xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { };
8181 xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { };
82−
8382 xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { };
8483 xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { };
8584 xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { };
8685 xfce4_verve_plugin = callPackage ./panel-plugins/xfce4-verve-plugin.nix { };
8786 xfce4_xkb_plugin = callPackage ./panel-plugins/xfce4-xkb-plugin.nix { };
88−
8987 xfce4_whiskermenu_plugin = callPackage ./panel-plugins/xfce4-whiskermenu-plugin.nix { };
90−
88+ xfce4_pulseaudio_plugin = callPackage ./panel-plugins/xfce4-pulseaudio-plugin.nix { };
9189
9290}; # xfce_self
9391
pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nixnew file+36
@@ -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+}