Files
nixpkgs/pkgs/by-name/cb/cbatticon/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
879 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
gettext,
glib,
gtk3,
libnotify,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "cbatticon";
version = "1.6.13";
src = fetchFromGitHub {
owner = "valr";
repo = "cbatticon";
rev = version;
sha256 = "sha256-VQjJujF9lnVvQxV+0YqodLgnI9F90JKDAGBu5nM/Q/c=";
};
nativeBuildInputs = [
pkg-config
gettext
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
libnotify
];
patchPhase = ''
sed -i -e 's/ -Wno-format//g' Makefile
'';
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "Lightweight and fast battery icon that sits in the system tray";
mainProgram = "cbatticon";
homepage = "https://github.com/valr/cbatticon";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ ];
};
}