Skip to content

Instantly share code, notes, and snippets.

@lepsa
Created July 13, 2018 12:52
Show Gist options
  • Save lepsa/f1af944637a68eb3198aba5206973f2f to your computer and use it in GitHub Desktop.
Save lepsa/f1af944637a68eb3198aba5206973f2f to your computer and use it in GitHub Desktop.
{ autoconf, fetchurl, glib, gnum4, gtk, gtk3, hicolor-icon-theme, intltool
, libpulseaudio, libtool, libxfce4ui, libxfce4util, libxfcegui4, linux, makeWrapper
, pkgconfig, stdenv, xfce4-dev-tools, xfce4-panel, xfce4panel_gtk3, xfconf
, 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.4";
ver_min = "1";
src = fetchurl {
url = "mirror://xfce/src/panel-plugins/${p_name}/snapshot/${p_name}-${p_name}-${ver_maj}.${ver_min}.tar.gz";
sha256 = "07cbd4b4b08bd54107586335fa8b1eab3f6d92672b2532f46e2add65ac0b0636";
};
name = "${p_name}-${ver_maj}.${ver_min}";
enableParallelBuilding = true;
postPatch = ''
substituteInPlace configure.ac.in --replace gio-2.0 gio-unix-2.0
'';
nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [
glib makeWrapper xfce4-dev-tools libxfce4util xfce4panel_gtk3
xfconf gtk3 libpulseaudio libxfce4ui xfce4-panel
]
++ optional withKeybinder keybinder3
++ optional withLibnotify libnotify;
preConfigure = ''
./autogen.sh
'';
configureFlags = [
"--enable-maintainer-mode"
] ++ optional withKeybinder "--enable-keybinder"
++ optional withLibnotify "--enable-libnotify"
;
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 = [ ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment