2021-03-27 06:54:37 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "alertmanager-irc-relay";
|
2021-12-05 17:56:50 +00:00
|
|
|
version = "0.4.3";
|
2021-03-27 06:54:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "alertmanager-irc-relay";
|
|
|
|
rev = "v${version}";
|
2021-12-05 17:56:50 +00:00
|
|
|
sha256 = "sha256-ACOXrIeNDUFUwr50frW/miuW1eq29UvCYac5HCdXfx8=";
|
2021-03-27 06:54:37 +00:00
|
|
|
};
|
|
|
|
|
2021-04-14 22:07:57 +01:00
|
|
|
vendorSha256 = "sha256-VLG15IXS/fXFMTCJKEqGW6qZ9aOLPhazidVsOywG+w4=";
|
2021-03-27 06:54:37 +00:00
|
|
|
|
2021-08-26 07:45:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|