nixpkgs/pkgs/by-name/up/upower-notify/package.nix
Paul Meyer be896c0d9b upower-notify: move to by-name, rename
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-07-21 10:44:27 +02:00

34 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
# To use upower-notify, the maintainer suggests adding something like this to your configuration.nix:
#
# service.xserver.displayManager.sessionCommands = ''
# ${pkgs.dunst}/bin/dunst -shrink -geometry 0x0-50-50 -key space & # ...if don't already have a dbus notification display app
# (sleep 3; exec ${pkgs.yeshup}/bin/yeshup ${pkgs.go-upower-notify}/bin/upower-notify) &
# '';
buildGoModule {
pname = "upower-notify";
version = "0-unstable-2024-07-20";
src = fetchFromGitHub {
owner = "omeid";
repo = "upower-notify";
rev = "c05ffbba9b8d475573be0908d75ac7c64d74be2d";
sha256 = "sha256-y+Cy3jkIfWiqF2HFopafdNSyGVA2ws4250Lg02rVxmo=";
};
vendorHash = "sha256-58zK6t3rb+19ilaQaNgsMVFQBYKPIV40ww8klrGbpnw=";
proxyVendor = true;
meta = with lib; {
description = "simple tool to give you Desktop Notifications about your battery";
mainProgram = "upower-notify";
homepage = "https://github.com/omeid/upower-notify";
maintainers = with maintainers; [ kamilchm ];
};
}