From 11d09c91c5359e0db9d7e7001cf98784719feed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Wed, 30 Mar 2016 11:34:54 -0300 Subject: [PATCH] cbatticon: 1.4.2 -> 1.6.4 --- pkgs/applications/misc/cbatticon/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/cbatticon/default.nix b/pkgs/applications/misc/cbatticon/default.nix index 0a7fb1e5f3fe..10c8c4836949 100644 --- a/pkgs/applications/misc/cbatticon/default.nix +++ b/pkgs/applications/misc/cbatticon/default.nix @@ -1,21 +1,25 @@ -{ stdenv, fetchzip, gtk, libnotify, unzip, glib, pkgconfig }: +{ stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify }: stdenv.mkDerivation rec { name = "cbatticon-${version}"; - version = "1.4.2"; + version = "1.6.4"; - src = fetchzip { - url = "https://github.com/valr/cbatticon/archive/${version}.zip"; - sha256 = "0ixkxvlrn84b8nh75c9s2gvxnycis89mf047iz8j38814979di5l"; + src = fetchFromGitHub { + owner = "valr"; + repo = "cbatticon"; + rev = version; + sha256 = "0m3bj408mbini97kq0cdf048lnfkdn7bd8ikbfijd7dwfdzv27i5"; }; makeFlags = "PREFIX=$(out)"; - buildInputs = [ gtk libnotify unzip glib pkgconfig ]; + nativeBuildInputs = [ pkgconfig gettext ]; + + buildInputs = [ glib gtk3 libnotify ]; meta = with stdenv.lib; { - description = "A lightweight and fast battery icon that sits in your system tray"; + description = "Lightweight and fast battery icon that sits in the system tray"; homepage = https://github.com/valr/cbatticon; license = licenses.gpl2; maintainers = [ maintainers.iElectric ];