2016-03-30 15:34:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify }:
|
2015-03-16 08:42:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "cbatticon-${version}";
|
2018-04-14 20:27:52 +01:00
|
|
|
version = "1.6.8";
|
2015-03-16 08:42:12 +00:00
|
|
|
|
2016-03-30 15:34:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "valr";
|
|
|
|
repo = "cbatticon";
|
|
|
|
rev = version;
|
2018-04-14 20:27:52 +01:00
|
|
|
sha256 = "16g26vin1693dbdr9qsnw36fdchx394lp79gvp7gcbw0w1ny9av6";
|
2015-03-16 08:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
2016-03-30 15:34:54 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
|
|
|
|
|
|
|
buildInputs = [ glib gtk3 libnotify ];
|
2015-03-16 08:42:12 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-03-30 15:34:54 +01:00
|
|
|
description = "Lightweight and fast battery icon that sits in the system tray";
|
2015-03-16 08:42:12 +00:00
|
|
|
homepage = https://github.com/valr/cbatticon;
|
|
|
|
license = licenses.gpl2;
|
2016-05-17 12:57:28 +01:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2015-03-16 08:42:12 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|