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