nixpkgs-suyu/pkgs/tools/audio/pasystray/default.nix

33 lines
968 B
Nix
Raw Normal View History

{stdenv, fetchurl, unzip, autoconf, automake, makeWrapper, pkgconfig, gnome_icon_theme, avahi, gtk3, libnotify, pulseaudio, x11}:
2014-11-07 13:01:11 +01:00
stdenv.mkDerivation rec {
name = "pasystray-0.4.0";
src = fetchurl {
url = "https://github.com/christophgysin/pasystray/archive/${name}.zip";
sha256 = "1gpb7yqcxqglv50iqbkg2lg3r0z07jm4ir2zqmvns6sgddks590w";
};
buildInputs = [ unzip autoconf automake makeWrapper pkgconfig gnome_icon_theme avahi gtk3 libnotify pulseaudio x11 ];
2014-11-07 13:01:11 +01:00
preConfigure = ''
aclocal
autoconf
autoheader
automake --add-missing
'';
preFixup = ''
wrapProgram "$out/bin/pasystray" \
--prefix XDG_DATA_DIRS : "${gnome_icon_theme}/share:$GSETTINGS_SCHEMAS_PATH"
'';
2014-11-07 13:44:40 +01:00
meta = with stdenv.lib; {
2014-11-07 13:01:11 +01:00
description = "PulseAudio system tray";
2014-11-07 16:51:27 +01:00
homepage = "https://github.com/christophgysin/pasystray";
2014-11-07 13:44:40 +01:00
license = licenses.lgpl21Plus;
maintainers = [ maintainers.exlevan ];
platfoms = platforms.linux;
2014-11-07 13:01:11 +01:00
};
}