From 1736cedc202bd22d5c9bbf5208c287faa45aed1f Mon Sep 17 00:00:00 2001 From: Demin Dmitriy Date: Sun, 1 Nov 2015 07:01:08 +0300 Subject: [PATCH] xfce4-pulseaudio-plugin: init at 0.2.3 --- pkgs/desktops/xfce/default.nix | 4 +-- .../panel-plugins/xfce4-pulseaudio-plugin.nix | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index 1ff585843e5b..45c10e0a44c2 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -79,15 +79,13 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { }; xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { }; xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { }; - xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { }; xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { }; xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { }; xfce4_verve_plugin = callPackage ./panel-plugins/xfce4-verve-plugin.nix { }; xfce4_xkb_plugin = callPackage ./panel-plugins/xfce4-xkb-plugin.nix { }; - xfce4_whiskermenu_plugin = callPackage ./panel-plugins/xfce4-whiskermenu-plugin.nix { }; - + xfce4_pulseaudio_plugin = callPackage ./panel-plugins/xfce4-pulseaudio-plugin.nix { }; }; # xfce_self diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix new file mode 100644 index 000000000000..1b963237c02c --- /dev/null +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4panel_gtk3, xfconf +, gtk3, libpulseaudio +, withKeybinder ? true, keybinder3 +, withLibnotify ? true, libnotify +}: + +assert withKeybinder -> keybinder3 != null; +assert withLibnotify -> libnotify != null; + +with stdenv.lib; + +stdenv.mkDerivation rec { + p_name = "xfce4-pulseaudio-plugin"; + ver_maj = "0.2"; + ver_min = "3"; + + src = fetchurl { + url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2"; + sha256 = "e82836bc8cf7d905b4e60d43dc630ba8e32dea785989700c71d4aeee9f583b33"; + }; + name = "${p_name}-${ver_maj}.${ver_min}"; + + nativeBuildInputs = [ pkgconfig intltool ]; + buildInputs = [ libxfce4util xfce4panel_gtk3 xfconf gtk3 libpulseaudio ] + ++ optional withKeybinder keybinder3 + ++ optional withLibnotify libnotify; + + preFixup = "rm $out/share/icons/hicolor/icon-theme.cache"; + + meta = { + homepage = "http://goodies.xfce.org/projects/panel-plugins/${p_name}"; + description = "Adjust the audio volume of the PulseAudio sound system"; + platforms = platforms.linux; + maintainers = [ ]; + }; +}