lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.05-pre 35 lines 932 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "alertmanager-bot"; 5 version = "0.4.3"; 6 7 src = fetchFromGitHub { 8 owner = "metalmatze"; 9 repo = pname; 10 rev = version; 11 sha256 = "1hjfkksqb675gabzjc221b33h2m4s6qsanmkm382d3fyzqj71dh9"; 12 }; 13 14 vendorSha256 = null; #vendorSha256 = ""; 15 16 postPatch = '' 17 sed "s;/templates/default.tmpl;$out/share&;" -i cmd/alertmanager-bot/main.go 18 ''; 19 20 ldflags = [ 21 "-s" "-w" "-X main.Version=v${version}" "-X main.Revision=${src.rev}" 22 ]; 23 24 postInstall = '' 25 install -Dm644 -t $out/share/templates $src/default.tmpl 26 ''; 27 28 meta = with lib; { 29 description = "Bot for Prometheus' Alertmanager"; 30 homepage = "https://github.com/metalmatze/alertmanager-bot"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ mmahut ]; 33 broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.go-modules --check 34 }; 35}