about summary refs log tree commit diff
path: root/pkgs/applications/misc/swaynag-battery/default.nix
blob: 8dc99ca012e92476fd5f649c87a966c1efae7698 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "swaynag-battery";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "m00qek";
    repo = "swaynag-battery";
    rev = "v${version}";
    hash = "sha256-7f9+4Fzw5B5ATuud4MJC3iyuNRTx6kwJ7/KsusGtQM8=";
  };

  vendorHash = "sha256-h9Zj3zmQ0Xpili5Pl6CXh1L0bb2uL1//B79I4/ron08=";

  meta = with lib; {
    homepage = "https://github.com/m00qek/swaynag-battery";
    description = "Shows a message when your battery is discharging ";
    maintainers = with maintainers; [ ];
    license = licenses.mit;
    mainProgram = "swaynag-battery";
  };
}