biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / audio / pasystray / default.nix
blobc0ceb449707df392c32f2ba973ba8f5aed426607
1 { lib, stdenv, fetchpatch, fetchFromGitHub, pkg-config, autoreconfHook, wrapGAppsHook3
2 , adwaita-icon-theme, avahi, gtk3, libayatana-appindicator, libnotify, libpulseaudio
3 , gsettings-desktop-schemas
4 }:
6 stdenv.mkDerivation rec {
7   pname = "pasystray";
8   version = "0.8.2";
10   src = fetchFromGitHub {
11     owner = "christophgysin";
12     repo = "pasystray";
13     rev = version;
14     sha256 = "sha256-QaTQ8yUviJaFEQaQm2vYAUngqHliKe8TDYqfWt1Nx/0=";
15   };
17   patches = [
18     # Use ayatana-appindicator instead of appindicator
19     # https://github.com/christophgysin/pasystray/issues/98
20     (fetchpatch {
21       url = "https://sources.debian.org/data/main/p/pasystray/0.8.1-1/debian/patches/0001-Build-against-ayatana-appindicator.patch";
22       sha256 = "sha256-/HKPqVARfHr/3Vyls6a1n8ejxqW9Ztu4+8KK4jK8MkI=";
23     })
24     # Require X11 backend
25     # https://github.com/christophgysin/pasystray/issues/90#issuecomment-361881076
26     (fetchpatch {
27       url = "https://sources.debian.org/data/main/p/pasystray/0.8.1-1/debian/patches/0002-Require-X11-backend.patch";
28       sha256 = "sha256-6njC3vqBPWFS1xAsa1katQ4C0KJdVkHAP1MCPiZ6ELM=";
29     })
30    ];
32   nativeBuildInputs = [ pkg-config autoreconfHook wrapGAppsHook3 ];
33   buildInputs = [
34     adwaita-icon-theme
35     avahi gtk3 libayatana-appindicator libnotify libpulseaudio
36     gsettings-desktop-schemas
37   ];
39   meta = with lib; {
40     description = "PulseAudio system tray";
41     homepage = "https://github.com/christophgysin/pasystray";
42     license = licenses.lgpl21Plus;
43     maintainers = with maintainers; [ exlevan kamilchm ];
44     platforms = platforms.linux;
45     mainProgram = "pasystray";
46   };