nixpkgs/pkgs/by-name/up/upower-notify/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

34 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 ];
};
}