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