2020-01-17 16:07:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify, wrapGAppsHook }:
|
2015-03-16 09:42:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-11 21:57:31 +02:00
|
|
|
pname = "cbatticon";
|
2019-10-07 22:46:00 +02:00
|
|
|
version = "1.6.10";
|
2015-03-16 09:42:12 +01:00
|
|
|
|
2016-03-30 16:34:54 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "valr";
|
2019-06-11 21:57:31 +02:00
|
|
|
repo = pname;
|
2016-03-30 16:34:54 +02:00
|
|
|
rev = version;
|
2019-10-07 22:46:00 +02:00
|
|
|
sha256 = "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr";
|
2015-03-16 09:42:12 +01:00
|
|
|
};
|
|
|
|
|
2020-01-17 16:07:05 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext wrapGAppsHook ];
|
2019-06-11 21:57:31 +02:00
|
|
|
|
|
|
|
buildInputs = [ glib gtk3 libnotify ];
|
|
|
|
|
2018-06-29 22:22:57 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's/ -Wno-format//g' Makefile
|
|
|
|
'';
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2015-03-16 09:42:12 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-03-30 16:34:54 +02:00
|
|
|
description = "Lightweight and fast battery icon that sits in the system tray";
|
2015-03-16 09:42:12 +01:00
|
|
|
homepage = https://github.com/valr/cbatticon;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2019-06-11 21:57:31 +02:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2015-03-16 09:42:12 +01:00
|
|
|
};
|
|
|
|
}
|