depot/pkgs/desktops/mate/mate-indicator-applet/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

66 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;
};
}