nixpkgs/pkgs/applications/misc/cbatticon/default.nix

32 lines
782 B
Nix
Raw Normal View History

2016-03-30 15:34:54 +01:00
{ stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify }:
2015-03-16 08:42:12 +00:00
stdenv.mkDerivation rec {
2019-06-11 20:57:31 +01:00
pname = "cbatticon";
version = "1.6.9";
2015-03-16 08:42:12 +00:00
2016-03-30 15:34:54 +01:00
src = fetchFromGitHub {
owner = "valr";
2019-06-11 20:57:31 +01:00
repo = pname;
2016-03-30 15:34:54 +01:00
rev = version;
2019-06-11 20:57:31 +01:00
sha256 = "0kw09d678sd3m18fmi4380sl4a2m5lkfmq0kps16cdmq7z80rvaf";
2015-03-16 08:42:12 +00:00
};
2019-06-11 20:57:31 +01:00
nativeBuildInputs = [ pkgconfig gettext ];
buildInputs = [ glib gtk3 libnotify ];
patchPhase = ''
sed -i -e 's/ -Wno-format//g' Makefile
'';
2019-06-11 20:57:31 +01:00
makeFlags = "PREFIX=${placeholder "out"}";
2015-03-16 08:42:12 +00:00
meta = with stdenv.lib; {
2016-03-30 15:34:54 +01:00
description = "Lightweight and fast battery icon that sits in the system tray";
2015-03-16 08:42:12 +00:00
homepage = https://github.com/valr/cbatticon;
license = licenses.gpl2;
platforms = platforms.linux;
2019-06-11 20:57:31 +01:00
maintainers = [ maintainers.domenkozar ];
2015-03-16 08:42:12 +00:00
};
}