depot/third_party/nixpkgs/pkgs/by-name/up/upower-notify/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

33 lines
1 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";
hash = "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 ];
};
}