mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
30 lines
885 B
Nix
30 lines
885 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "alertmanager-irc-relay";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "alertmanager-irc-relay";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-02uEvcxT5+0OJtqOyuQjgkqL0fZnN7umCSxBqAVPT9U=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-VLG15IXS/fXFMTCJKEqGW6qZ9aOLPhazidVsOywG+w4=";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|