eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
48 lines
1.6 KiB
Nix
48 lines
1.6 KiB
Nix
{ lib, stdenv, fetchpatch, fetchFromGitHub, pkg-config, autoreconfHook, wrapGAppsHook3
|
|
, gnome, avahi, gtk3, libayatana-appindicator, libnotify, libpulseaudio
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pasystray";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "christophgysin";
|
|
repo = "pasystray";
|
|
rev = version;
|
|
sha256 = "sha256-QaTQ8yUviJaFEQaQm2vYAUngqHliKe8TDYqfWt1Nx/0=";
|
|
};
|
|
|
|
patches = [
|
|
# Use ayatana-appindicator instead of appindicator
|
|
# https://github.com/christophgysin/pasystray/issues/98
|
|
(fetchpatch {
|
|
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=";
|
|
})
|
|
# 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=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook wrapGAppsHook3 ];
|
|
buildInputs = [
|
|
gnome.adwaita-icon-theme
|
|
avahi gtk3 libayatana-appindicator libnotify libpulseaudio
|
|
gsettings-desktop-schemas
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "PulseAudio system tray";
|
|
homepage = "https://github.com/christophgysin/pasystray";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ exlevan kamilchm ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "pasystray";
|
|
};
|
|
}
|