3
0
Fork 0
forked from mirrors/nixpkgs

Batti (version 0.3.8): New Package

Batti is a small, GTK+UPower-based battery monitor, ideal for
lightweight desktop environments/window managers.

Closes #4031
This commit is contained in:
AndersonTorres 2014-09-10 14:48:39 -03:00 committed by Mateusz Kowalczyk
parent 473ffd9eae
commit 5c834022e8
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ stdenv, fetchurl
, pkgconfig, makeWrapper, gettext, python
, gtk, pygtk, dbus_python
, upower }:
stdenv.mkDerivation rec {
name = "batti-${version}";
version = "0.3.8";
src = fetchurl {
url = "https://batti-gtk.googlecode.com/files/${name}.tar.gz";
sha256 = "072d92gpsiiin631589nj77i2w1425p6db0qxyml7myscfy9jgx6";
};
buildInputs = with stdenv.lib;
[ pkgconfig makeWrapper gettext python gtk pygtk dbus_python upower ];
configurePhase = "true";
buildPhase = ''
python setup.py build
'';
installPhase = ''
python setup.py install --prefix $out
wrapProgram $out/bin/batti --set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out)"
'';
meta = with stdenv.lib; {
description = "An {UPower,GTK}-based battery monitor for the system tray";
longDescription = ''
Batti is a simple battery monitor for the system tray. Batti
uses UPower, and if that is missing DeviceKit.Power, for it's
power information.
'';
homepage = http://batti-gtk.googlecode.com/;
license = licenses.lgpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux;
};
}
# TODO: fix the "icon not found" problems...

View file

@ -8537,6 +8537,8 @@ let
batik = callPackage ../applications/graphics/batik { };
batti = callPackage ../applications/misc/batti { };
bazaar = callPackage ../applications/version-management/bazaar { };
bazaarTools = builderDefsPackage (import ../applications/version-management/bazaar/tools.nix) {