2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
2023-11-16 04:20:00 +00:00
|
|
|
, libayatana-indicator
|
2024-04-21 15:54:59 +00:00
|
|
|
, mate-panel
|
2022-08-12 12:06:08 +00:00
|
|
|
, hicolor-icon-theme
|
|
|
|
, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-indicator-applet";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.28.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "zrPXA5cKPlWNfNffCxwhceOvdSolSVrO0uIiwemtSc0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Find installed Unity & Ayatana (new-style) indicators
|
|
|
|
substituteInPlace src/applet-main.c \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail '/usr/share' '/run/current-system/sw/share'
|
2023-11-16 04:20:00 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2023-11-16 04:20:00 +00:00
|
|
|
libayatana-indicator
|
2024-04-21 15:54:59 +00:00
|
|
|
mate-panel
|
2020-04-24 23:36:52 +00:00
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
configureFlags = [ "--with-ayatana-indicators" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|