1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/applications/misc/cbatticon/default.nix
aszlig b70ccf8a7b
cbatticon: Fix build by removing -Wno-format
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
2018-06-29 22:42:16 +02:00

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;
};
}