2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, pkg-config, autoreconfHook, wrapGAppsHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome, avahi, gtk3, libayatana-appindicator-gtk3, libnotify, libpulseaudio
|
2020-04-24 23:36:52 +00:00
|
|
|
, xlibsWrapper, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pasystray";
|
|
|
|
version = "0.7.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christophgysin";
|
|
|
|
repo = "pasystray";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0xx1bm9kimgq11a359ikabdndqg5q54pn1d1dyyjnrj0s41168fk";
|
|
|
|
};
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/christophgysin/pasystray/issues/90#issuecomment-306190701
|
|
|
|
./fix-wayland.patch
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
# https://github.com/christophgysin/pasystray/issues/98
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/p/pasystray/0.7.1-1/debian/patches/0001-Build-against-ayatana-appindicator.patch";
|
|
|
|
sha256 = "0hijphrf52n2zfwdnrmxlp3a7iwznnkb79awvpzplz0ia2lqywpw";
|
|
|
|
})
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-11-30 08:33:03 +00:00
|
|
|
avahi gtk3 libayatana-appindicator-gtk3 libnotify libpulseaudio xlibsWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "PulseAudio system tray";
|
|
|
|
homepage = "https://github.com/christophgysin/pasystray";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ exlevan kamilchm ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|