mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
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
33 lines
785 B
Nix
33 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;
|
|
};
|
|
}
|