2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-03-15 05:39:43 +01:00
|
|
|
, gettext
|
2018-02-01 00:45:48 +01:00
|
|
|
, fetchurl
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2018-02-01 00:45:48 +01:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, upower
|
2018-09-03 20:35:09 +02:00
|
|
|
, python3
|
2018-02-25 03:23:58 +01:00
|
|
|
, desktop-file-utils
|
2018-02-01 00:45:48 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome3 }:
|
|
|
|
|
2018-03-15 05:39:43 +01:00
|
|
|
let
|
|
|
|
pname = "gnome-power-manager";
|
2019-03-08 20:49:54 +01:00
|
|
|
version = "3.32.0";
|
2018-03-15 05:39:43 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-08 20:49:54 +01:00
|
|
|
sha256 = "0drfn3wcc8l4n07qwv6p0rw2dwcd00hwzda282q62l6sasks2b2g";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2018-03-15 05:39:43 +01:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2018-02-01 00:45:48 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2018-02-01 00:45:48 +01:00
|
|
|
wrapGAppsHook
|
2018-03-15 05:39:43 +01:00
|
|
|
gettext
|
2018-02-01 00:45:48 +01:00
|
|
|
|
|
|
|
# needed by meson_post_install.sh
|
2018-09-03 20:35:09 +02:00
|
|
|
python3
|
2018-02-01 00:45:48 +01:00
|
|
|
glib.dev
|
2018-02-25 03:23:58 +01:00
|
|
|
desktop-file-utils
|
2018-02-01 00:45:48 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
upower
|
2019-02-13 22:47:50 +01:00
|
|
|
gnome3.adwaita-icon-theme
|
2018-02-01 00:45:48 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://projects-old.gnome.org/gnome-power-manager/";
|
2018-02-01 00:45:48 +01:00
|
|
|
description = "View battery and power statistics provided by UPower";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-02-01 00:45:48 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|