2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
gettext,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
gtk3,
|
|
|
|
glib,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
upower,
|
|
|
|
python3,
|
|
|
|
desktop-file-utils,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
gnome,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-power-manager";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "43.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-power-manager/${lib.versions.major version}/gnome-power-manager-${version}.tar.xz";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-faq0i73bMOnfKrplDLYNBeZnyfiFrOagoeeVDgy90y8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
|
|
|
|
# needed by meson_post_install.sh
|
|
|
|
python3
|
2022-10-21 18:38:19 +00:00
|
|
|
glib
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
upower
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
passthru = {
|
2024-09-19 14:19:46 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-power-manager"; };
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-30 13:39:12 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-power-manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "View battery and power statistics provided by UPower";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-power-statistics";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|