gnome-power-manager: init at 3.26.0

Provides an app to view battery and power statistics.  This app is badly
documented on the web, but is in the default Fedora install; hence to
motivation to add it to Nix.
This commit is contained in:
Sam Parkinson 2018-02-01 10:45:48 +11:00 committed by Jan Tojnar
parent fa56fc4be0
commit d2f065b793
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ stdenv
, intltool
, fetchurl
, pkgconfig
, gtk3
, glib
, meson
, ninja
, upower
, desktop_file_utils
, wrapGAppsHook
, gnome3 }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
nativeBuildInputs = [
meson
ninja
pkgconfig
wrapGAppsHook
intltool
# needed by meson_post_install.sh
glib.dev
desktop_file_utils
];
buildInputs = [
gtk3
glib
upower
gnome3.defaultIconTheme
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = https://projects.gnome.org/gnome-power-manager/;
description = "View battery and power statistics provided by UPower";
maintainers = gnome3.maintainers;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,10 @@
# Autogenerated by maintainers/scripts/gnome.sh update
fetchurl: {
name = "gnome-power-manager-3.26.0";
src = fetchurl {
url = mirror://gnome/sources/gnome-power-manager/3.26/gnome-power-manager-3.26.0.tar.xz;
sha256 = "20aee0b0b4015e7cc6fbabc3cbc4344c07c230fe3d195e90c8ae0dc5d55a2d4e";
};
}

View File

@ -36,6 +36,7 @@ let
nautilus-sendto dconf-editor vinagre gnome-weather gnome-logs
gnome-maps gnome-characters gnome-calendar accerciser gnome-nettool
gnome-getting-started-docs gnome-packagekit gnome-software
gnome-power-manager
];
gamesPackages = with gnome3; [ swell-foop lightsoff iagno
@ -297,6 +298,8 @@ let
gegl = gegl_0_3;
};
gnome-power-manager = callPackage ./apps/gnome-power-manager { };
gnome-weather = callPackage ./apps/gnome-weather { };
nautilus-sendto = callPackage ./apps/nautilus-sendto { };