mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
fb655dce4c
I presume there's something about how github creates the .zip files such that they can change SHA. Please note: this is a very outdated version of pasystray---I don't know if that's intentional, but perhaps a better strategy would be to update it wholesale.
36 lines
1010 B
Nix
36 lines
1010 B
Nix
{stdenv, fetchurl, unzip, autoconf, automake, makeWrapper, pkgconfig
|
|
, gnome3, avahi, gtk3, libnotify, pulseaudio, x11}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pasystray-0.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/christophgysin/pasystray/archive/${name}.zip";
|
|
sha256 = "0n41qm04kilhc827yx8y1ijslmajg2dxykaf3s3aq6s6bjzzw8bh";
|
|
};
|
|
|
|
buildInputs = [ unzip autoconf automake makeWrapper pkgconfig
|
|
gnome3.defaultIconTheme
|
|
avahi gtk3 libnotify pulseaudio x11 ];
|
|
|
|
preConfigure = ''
|
|
aclocal
|
|
autoconf
|
|
autoheader
|
|
automake --add-missing
|
|
'';
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/pasystray" \
|
|
--prefix XDG_DATA_DIRS : "${gnome3.defaultIconTheme}/share:$GSETTINGS_SCHEMAS_PATH"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "PulseAudio system tray";
|
|
homepage = "https://github.com/christophgysin/pasystray";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.exlevan ];
|
|
platfoms = platforms.linux;
|
|
};
|
|
}
|