2021-08-22 07:53:02 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gettext, glib, itstool, libxml2, mate-panel, libnotify, libcanberra-gtk3, libsecret, dbus-glib, upower, gtk3, libtool, polkit, wrapGAppsHook, mateUpdateScript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-power-manager";
|
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 = "0ybvwv24g8awxjl2asgvx6l2ghn4limcm48ylha68dkpy3607di6";
|
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
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
libcanberra-gtk3
|
|
|
|
gtk3
|
2021-08-22 07:53:02 +00:00
|
|
|
libsecret
|
2020-04-24 23:36:52 +00:00
|
|
|
libnotify
|
|
|
|
dbus-glib
|
|
|
|
upower
|
|
|
|
polkit
|
|
|
|
mate-panel
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-applets" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The MATE Power Manager";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|