2021-03-27 06:54:37 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "alertmanager-irc-relay";
|
2023-03-01 23:45:45 +00:00
|
|
|
version = "0.5.1";
|
2021-03-27 06:54:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "alertmanager-irc-relay";
|
|
|
|
rev = "v${version}";
|
2023-03-01 23:45:45 +00:00
|
|
|
sha256 = "sha256-Rl7o2QPa/IU1snlx/LiJxQok9pnkw9XANnJsu41vNlY=";
|
2021-03-27 06:54:37 +00:00
|
|
|
};
|
|
|
|
|
2023-03-01 23:45:45 +00:00
|
|
|
vendorHash = "sha256-KX+TR0n14+95lldF+0KUo5DbqOKpUDaZNuKMBf0KHFQ=";
|
2021-03-27 06:54:37 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2021-03-27 06:54:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Alertmanager IRC Relay is a bot relaying Prometheus alerts to IRC";
|
|
|
|
longDescription = ''
|
|
|
|
Alertmanager IRC Relay is a bot relaying Prometheus alerts to IRC.
|
|
|
|
Alerts are received from Prometheus using Webhooks and are relayed to an
|
|
|
|
IRC channel
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/google/alertmanager-irc-relay";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ymatsiuk ];
|
|
|
|
};
|
|
|
|
}
|