nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 1.1 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7# To use upower-notify, the maintainer suggests adding something like this to your configuration.nix: 8# 9# service.xserver.displayManager.sessionCommands = '' 10# ${pkgs.dunst}/bin/dunst -shrink -geometry 0x0-50-50 -key space & # ...if don't already have a dbus notification display app 11# (sleep 3; exec ${pkgs.yeshup}/bin/yeshup ${pkgs.go-upower-notify}/bin/upower-notify) & 12# ''; 13buildGoModule { 14 pname = "upower-notify"; 15 version = "0-unstable-2024-07-20"; 16 17 src = fetchFromGitHub { 18 owner = "omeid"; 19 repo = "upower-notify"; 20 rev = "c05ffbba9b8d475573be0908d75ac7c64d74be2d"; 21 hash = "sha256-y+Cy3jkIfWiqF2HFopafdNSyGVA2ws4250Lg02rVxmo="; 22 }; 23 24 vendorHash = "sha256-58zK6t3rb+19ilaQaNgsMVFQBYKPIV40ww8klrGbpnw="; 25 proxyVendor = true; 26 27 meta = { 28 description = "Simple tool to give you Desktop Notifications about your battery"; 29 mainProgram = "upower-notify"; 30 homepage = "https://github.com/omeid/upower-notify"; 31 maintainers = with lib.maintainers; [ kamilchm ]; 32 }; 33}