summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/alertmanager-bot-telegram/default.nix
blob: 79a1740fdd805278a23df93219d133246b319529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
  pname = "alertmanager-bot";
  version = "2020-07-13";

  src = fetchFromGitHub {
    owner = "metalmatze";
    repo = "alertmanager-bot";
    rev = "5efc0bbbf8023d4324e9da98562f064a714a7206";
    sha256 = "09cciml1j8x76jpm2v5v6h2q6j1fkhsz1kswslmx8wl4wk40xgp4";
  };

  vendorSha256 = "1v0fgin8dn81b559zz4lqmrl7hikr46g4gb18sci4riql5qs1isj";
  postInstall = ''
    install -D ./default.tmpl $out/templates/default.tmpl
  '';

  meta = with lib; {
    description = "Simple command-line snippet manager, written in Go";
    homepage = https://github.com/knqyf263/pet;
    license = licenses.mit;
    maintainers = with maintainers; [ kalbasit ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}