mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 12:34:00 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ lib, stdenv, fetchpatch, fetchFromGitHub, pkgconfig, autoreconfHook, wrapGAppsHook
|
|
, gnome3, avahi, gtk3, libayatana-appindicator-gtk3, libnotify, libpulseaudio
|
|
, xlibsWrapper, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pasystray";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "christophgysin";
|
|
repo = "pasystray";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0xx1bm9kimgq11a359ikabdndqg5q54pn1d1dyyjnrj0s41168fk";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/christophgysin/pasystray/issues/90#issuecomment-306190701
|
|
./fix-wayland.patch
|
|
|
|
# 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";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook wrapGAppsHook ];
|
|
buildInputs = [
|
|
gnome3.adwaita-icon-theme
|
|
avahi gtk3 libayatana-appindicator-gtk3 libnotify libpulseaudio xlibsWrapper
|
|
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;
|
|
};
|
|
}
|