nixpkgs/pkgs/desktops/mate/mate-indicator-applet/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
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)
2024-04-27 02:23:22 +02:00

67 lines
1.7 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, gettext
, gtk3
, libayatana-indicator
, mate-panel
, hicolor-icon-theme
, wrapGAppsHook3
, mateUpdateScript
}:
stdenv.mkDerivation rec {
pname = "mate-indicator-applet";
version = "1.28.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "zrPXA5cKPlWNfNffCxwhceOvdSolSVrO0uIiwemtSc0=";
};
postPatch = ''
# Find installed Unity & Ayatana (new-style) indicators
substituteInPlace src/applet-main.c \
--replace-fail '/usr/share' '/run/current-system/sw/share'
'';
nativeBuildInputs = [
pkg-config
gettext
wrapGAppsHook3
];
buildInputs = [
gtk3
libayatana-indicator
mate-panel
hicolor-icon-theme
];
configureFlags = [ "--with-ayatana-indicators" ];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
homepage = "https://github.com/mate-desktop/mate-indicator-applet";
description = "MATE panel indicator applet";
longDescription = ''
A small applet to display information from various applications
consistently in the panel.
The indicator applet exposes Ayatana Indicators in the MATE Panel.
Ayatana Indicators are an initiative by Canonical to provide crisp and
clean system and application status indication. They take the form of
an icon and associated menu, displayed (usually) in the desktop panel.
Existing indicators include the Message Menu, Battery Menu and Sound
menu.
'';
license = with licenses; [ gpl3Plus lgpl2Plus ];
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}