2022-03-30 09:31:56 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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) &
|
|
|
|
# '';
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "upower-notify";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "unstable-2016-03-10";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
goPackagePath = "github.com/omeid/upower-notify";
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omeid";
|
|
|
|
repo = "upower-notify";
|
|
|
|
rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
|
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "simple tool to give you Desktop Notifications about your battery";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "upower-notify";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/omeid/upower-notify";
|
|
|
|
maintainers = with maintainers; [ kamilchm ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|