forked from mirrors/nixpkgs
277e123b1a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cbatticon/versions. These checks were done: - built on NixOS - ran ‘/nix/store/b9f5y9awpbx1m193hrb57bwv70xg08cb-cbatticon-1.6.8/bin/cbatticon -h’ got 0 exit code - ran ‘/nix/store/b9f5y9awpbx1m193hrb57bwv70xg08cb-cbatticon-1.6.8/bin/cbatticon --help’ got 0 exit code - ran ‘/nix/store/b9f5y9awpbx1m193hrb57bwv70xg08cb-cbatticon-1.6.8/bin/cbatticon -v’ and found version 1.6.8 - ran ‘/nix/store/b9f5y9awpbx1m193hrb57bwv70xg08cb-cbatticon-1.6.8/bin/cbatticon --version’ and found version 1.6.8 - found 1.6.8 with grep in /nix/store/b9f5y9awpbx1m193hrb57bwv70xg08cb-cbatticon-1.6.8 - directory tree listing: https://gist.github.com/248717637ae5df50bb8a3da4134c627b
29 lines
717 B
Nix
29 lines
717 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";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|