2021-02-23 00:16:49 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
{ fetchFromGitHub
|
2024-12-06 21:48:31 +00:00
|
|
|
, buildGoModule
|
2021-02-23 00:16:49 +00:00
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
let
|
2024-12-06 21:48:31 +00:00
|
|
|
version = "unstable-20220812";
|
2021-02-23 00:16:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benjojo";
|
|
|
|
repo = "alertmanager-discord";
|
2024-12-06 21:48:31 +00:00
|
|
|
rev = "89ef841a7ef43c5520df49d0c28335d899230eb9";
|
|
|
|
hash = "sha256-6P90c3ECUtmXxr2b0/yVscSI/bBgpXkrhou7Cne/bEM=";
|
2021-02-23 00:16:49 +00:00
|
|
|
};
|
|
|
|
in
|
2024-12-06 21:48:31 +00:00
|
|
|
buildGoModule rec {
|
2021-02-23 00:16:49 +00:00
|
|
|
pname = "alertmanager-discord";
|
|
|
|
inherit version src;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/benjojo/alertmanager-discord";
|
2024-12-06 21:48:31 +00:00
|
|
|
vendorHash = null;
|
2021-02-23 00:16:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/benjojo/alertmanager-discord";
|
|
|
|
description = "Alertmanager Discord Webhook bridge";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ lukegb ];
|
|
|
|
};
|
|
|
|
}
|