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
|
2022-08-12 12:06:08 +00:00
|
|
|
, mate
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-indicator-applet";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "1.26.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";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "144fh9f3lag2cqnmb6zxlh8k83ya8kha6rmd7r8gg3z5w3nzpyz4";
|
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 \
|
|
|
|
--replace '/usr/share' '/run/current-system/sw/share'
|
|
|
|
'';
|
|
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
mate.mate-panel
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|