b70ccf8a7b
This conflicts with -Werror=format-security and the build doesn't have any format security problems, so -Wno-format IMHO shouldn't be there in the first place. Signed-off-by: aszlig <aszlig@nix.build> Cc: @domenkozar
32 lines
785 B
Nix
32 lines
785 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cbatticon-${version}";
|
|
version = "1.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "valr";
|
|
repo = "cbatticon";
|
|
rev = version;
|
|
sha256 = "16g26vin1693dbdr9qsnw36fdchx394lp79gvp7gcbw0w1ny9av6";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i -e 's/ -Wno-format//g' Makefile
|
|
'';
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
|
|
|
buildInputs = [ glib gtk3 libnotify ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Lightweight and fast battery icon that sits in the system tray";
|
|
homepage = https://github.com/valr/cbatticon;
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.domenkozar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|