git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10771 from demin-dmitriy/pulseaudio-panel-plugin

xfce4-pulseaudio-plugin: init at 0.2.3

commit83ce6db83bbe950e376b80697ebd82ebb2b9a768 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateFri 13 Nov 2015, 17:47 (11 years ago) parentf7bd63d1736ced
4 files changed+60−14
pkgs/desktops/xfce/core/libxfce4ui.nix+9−6 pkgs/desktops/xfce/core/xfce4-panel.nix+12−4 pkgs/desktops/xfce/default.nix+3−4 pkgs/desktops/xfce/panel-plugins/xfce4-pulseaudio-plugin.nix+36
pkgs/desktops/xfce/core/libxfce4ui.nix+9−6
@@ -1,5 +1,9 @@
11{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, xfconf
2−, libglade, libstartup_notification }:
2+, libglade, libstartup_notification
3+, withGtk3 ? false, gtk3
4+}:
5+
6+with { inherit (stdenv.lib) optional; };
37
48stdenv.mkDerivation rec {
59 p_name = "libxfce4ui";
@@ -14,15 +18,14 @@ stdenv.mkDerivation rec {
1418
1519 #TODO: gladeui
1620 # Install into our own prefix instead.
17− preConfigure =
18− ''
19− configureFlags="--with-libglade-module-path=$out/lib/libglade/2.0"
20− '';
21+ configureFlags = [
22+ "--with-libglade-module-path=$out/lib/libglade/2.0"
23+ ] ++ optional withGtk3 "--enable-gtk3";
2124
2225 buildInputs =
2326 [ pkgconfig intltool gtk libxfce4util xfconf libglade
2427 libstartup_notification
25− ];
28+ ] ++ optional withGtk3 gtk3;
2629
2730 preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
2831
pkgs/desktops/xfce/core/xfce4-panel.nix+12−4
@@ -1,6 +1,10 @@
11{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, libxfce4ui
2−, libwnck, exo, garcon, xfconf, libstartup_notification
3−, makeWrapper, xfce4mixer }:
2+, libxfce4ui_gtk3, libwnck, exo, garcon, xfconf, libstartup_notification
3+, makeWrapper, xfce4mixer
4+, withGtk3 ? false, gtk3
5+}:
6+
7+with { inherit (stdenv.lib) optional; };
48
59stdenv.mkDerivation rec {
610 p_name = "xfce4-panel";
@@ -16,11 +20,15 @@ stdenv.mkDerivation rec {
1620 patches = [ ./xfce4-panel-datadir.patch ];
1721 patchFlags = "-p1";
1822
23+ configureFlags = optional withGtk3 "--enable-gtk3";
24+
1925 buildInputs =
2026 [ pkgconfig intltool gtk libxfce4util exo libwnck
2127 garcon xfconf libstartup_notification makeWrapper
22− ] ++ xfce4mixer.gst_plugins;
23− propagatedBuildInputs = [ libxfce4ui ];
28+ ] ++ xfce4mixer.gst_plugins
29+ ++ optional withGtk3 gtk3;
30+
31+ propagatedBuildInputs = [ (if withGtk3 then libxfce4ui_gtk3 else libxfce4ui) ];
2432
2533 postInstall = ''
2634 wrapProgram "$out/bin/xfce4-panel" \
pkgs/desktops/xfce/default.nix+3−4
@@ -23,6 +23,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
2323 garcon = callPackage ./core/garcon.nix { };
2424 gtk_xfce_engine = callPackage ./core/gtk-xfce-engine.nix { }; # ToDo: when should be used?
2525 libxfce4ui = callPackage ./core/libxfce4ui.nix { };
26+ libxfce4ui_gtk3 = libxfce4ui.override { withGtk3 = true; };
2627 libxfce4util = callPackage ./core/libxfce4util.nix { };
2728 libxfcegui4 = callPackage ./core/libxfcegui4.nix { };
2829 thunar = callPackage ./core/thunar.nix { };
@@ -33,6 +34,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
3334 = callPackage ./thunar-plugins/dropbox { };
3435 tumbler = callPackage ./core/tumbler.nix { };
3536 xfce4panel = callPackage ./core/xfce4-panel.nix { }; # ToDo: impure plugins from /run/current-system/sw/lib/xfce4
37+ xfce4panel_gtk3 = xfce4panel.override { withGtk3 = true; };
3638 xfce4session = callPackage ./core/xfce4-session.nix { };
3739 xfce4settings = callPackage ./core/xfce4-settings.nix { };
3840 xfce4_power_manager = callPackage ./core/xfce4-power-manager.nix { };
@@ -68,7 +70,6 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
6870
6971 #### PANEL PLUGINS from "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.{bz2,gz}"
7072
71−
7273 xfce4_battery_plugin = callPackage ./panel-plugins/xfce4-battery-plugin.nix { };
7374 xfce4_clipman_plugin = callPackage ./panel-plugins/xfce4-clipman-plugin.nix { };
7475 xfce4_cpufreq_plugin = callPackage ./panel-plugins/xfce4-cpufreq-plugin.nix { };
@@ -79,15 +80,13 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
7980 xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { };
8081 xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { };
8182 xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { };
82−
8383 xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { };
8484 xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { };
8585 xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { };
8686 xfce4_verve_plugin = callPackage ./panel-plugins/xfce4-verve-plugin.nix { };
8787 xfce4_xkb_plugin = callPackage ./panel-plugins/xfce4-xkb-plugin.nix { };
88−
8988 xfce4_whiskermenu_plugin = callPackage ./panel-plugins/xfce4-whiskermenu-plugin.nix { };
90−
89+ xfce4_pulseaudio_plugin = callPackage ./panel-plugins/xfce4-pulseaudio-plugin.nix { };
9190
9291}; # xfce_self
9392
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+}