Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
fa56fc4
commit d2f065b
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters