summary refs log tree commit diff
path: root/pkgs/applications/misc/batti/default.nix
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-09-10 14:48:39 -0300
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-09-21 00:22:27 +0100
commit5c834022e8950a6069a944517992fb8534fe5d54 (patch)
tree359bde7cfc7e9c76cda6e9ab3a77df69a98997c9 /pkgs/applications/misc/batti/default.nix
parent473ffd9eae9594fdbf281d1f5297d4d6cea32503 (diff)
downloadnixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar.gz
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar.bz2
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar.lz
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar.xz
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.tar.zst
nixpkgs-5c834022e8950a6069a944517992fb8534fe5d54.zip
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
Diffstat (limited to 'pkgs/applications/misc/batti/default.nix')
-rw-r--r--pkgs/applications/misc/batti/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/misc/batti/default.nix b/pkgs/applications/misc/batti/default.nix
new file mode 100644
index 00000000000..0cd8009dbe6
--- /dev/null
+++ b/pkgs/applications/misc/batti/default.nix
@@ -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...