2024-04-26 20:24:03 +00:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, pkg-config, autoreconfHook, wrapGAppsHook3
|
2024-06-22 12:43:05 +00:00
|
|
|
, adwaita-icon-theme, avahi, gtk3, libayatana-appindicator, libnotify, libpulseaudio
|
2022-10-29 22:08:28 +00:00
|
|
|
, gsettings-desktop-schemas
|
2018-06-26 20:47:34 +00:00
|
|
|
}:
|
2014-11-07 12:01:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pasystray";
|
2023-03-09 17:36:23 +00:00
|
|
|
version = "0.8.2";
|
2014-11-07 12:01:11 +00:00
|
|
|
|
2015-05-25 21:12:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christophgysin";
|
|
|
|
repo = "pasystray";
|
2023-03-09 17:36:23 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-QaTQ8yUviJaFEQaQm2vYAUngqHliKe8TDYqfWt1Nx/0=";
|
2014-11-07 12:01:11 +00:00
|
|
|
};
|
|
|
|
|
2020-04-12 06:18:00 +00:00
|
|
|
patches = [
|
2023-03-09 17:36:23 +00:00
|
|
|
# Use ayatana-appindicator instead of appindicator
|
2020-10-13 13:19:38 +00:00
|
|
|
# https://github.com/christophgysin/pasystray/issues/98
|
|
|
|
(fetchpatch {
|
2023-03-09 17:36:23 +00:00
|
|
|
url = "https://sources.debian.org/data/main/p/pasystray/0.8.1-1/debian/patches/0001-Build-against-ayatana-appindicator.patch";
|
|
|
|
sha256 = "sha256-/HKPqVARfHr/3Vyls6a1n8ejxqW9Ztu4+8KK4jK8MkI=";
|
2020-10-13 13:19:38 +00:00
|
|
|
})
|
2023-03-09 17:36:23 +00:00
|
|
|
# Require X11 backend
|
|
|
|
# https://github.com/christophgysin/pasystray/issues/90#issuecomment-361881076
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/p/pasystray/0.8.1-1/debian/patches/0002-Require-X11-backend.patch";
|
|
|
|
sha256 = "sha256-6njC3vqBPWFS1xAsa1katQ4C0KJdVkHAP1MCPiZ6ELM=";
|
|
|
|
})
|
|
|
|
];
|
2020-04-12 06:18:00 +00:00
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook wrapGAppsHook3 ];
|
2018-06-26 20:47:34 +00:00
|
|
|
buildInputs = [
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme
|
2022-10-29 22:08:28 +00:00
|
|
|
avahi gtk3 libayatana-appindicator libnotify libpulseaudio
|
2019-04-17 00:38:26 +00:00
|
|
|
gsettings-desktop-schemas
|
2018-06-26 20:47:34 +00:00
|
|
|
];
|
2014-11-07 12:01:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-07 12:01:11 +00:00
|
|
|
description = "PulseAudio system tray";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/christophgysin/pasystray";
|
2014-11-07 12:44:40 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2017-01-24 06:18:15 +00:00
|
|
|
maintainers = with maintainers; [ exlevan kamilchm ];
|
2016-08-02 14:41:28 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "pasystray";
|
2014-11-07 12:01:11 +00:00
|
|
|
};
|
|
|
|
}
|