2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchgit }:
|
2016-06-03 14:38:37 +02: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 {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "upower-notify";
|
2021-01-15 10:19:50 +01:00
|
|
|
version = "20160310-${lib.strings.substring 0 7 rev}";
|
2016-06-03 14:38:37 +02:00
|
|
|
rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
|
2020-07-31 06:07:43 +02:00
|
|
|
|
2016-06-03 14:38:37 +02:00
|
|
|
goPackagePath = "github.com/omeid/upower-notify";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/omeid/upower-notify";
|
|
|
|
sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
|
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-03 14:38:37 +02:00
|
|
|
}
|