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

32 lines
818 B
Nix
Raw Normal View History

{ 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";
2019-10-07 20:46:00 +00:00
version = "1.6.10";
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;
2019-10-07 20:46:00 +00:00
sha256 = "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr";
2015-03-16 08:42:12 +00:00
};
nativeBuildInputs = [ pkg-config gettext wrapGAppsHook ];
2019-06-11 19:57:31 +00:00
buildInputs = [ glib gtk3 libnotify ];
patchPhase = ''
sed -i -e 's/ -Wno-format//g' Makefile
'';
makeFlags = [ "PREFIX=${placeholder "out"}" ];
2015-03-16 08:42:12 +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";
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
};
}