2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
2024-04-21 15:54:59 +00:00
|
|
|
, mate-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
, mate-panel
|
|
|
|
, libnotify
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libsecret
|
|
|
|
, dbus-glib
|
|
|
|
, upower
|
|
|
|
, gtk3
|
|
|
|
, libtool
|
|
|
|
, polkit
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-08-12 12:06:08 +00:00
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-power-manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.28.1";
|
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 = "jr3LdLYH6Ggza6moFGze+Pl7zlNcKwyzv2UMWPce7iE=";
|
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
|
|
|
|
libtool
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
glib
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
libcanberra-gtk3
|
|
|
|
gtk3
|
|
|
|
libsecret
|
|
|
|
libnotify
|
|
|
|
dbus-glib
|
|
|
|
upower
|
|
|
|
polkit
|
2024-04-21 15:54:59 +00:00
|
|
|
mate-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
mate-panel
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-applets" ];
|
|
|
|
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "MATE Power Manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mate-desktop.org";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = with licenses; [ gpl2Plus fdl11Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members ++ (with maintainers; [ chpatrick ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|