alertmanager-discord: init
This commit is contained in:
parent
dc996b324b
commit
4649556303
2 changed files with 31 additions and 0 deletions
30
nix/pkgs/alertmanager-discord.nix
Normal file
30
nix/pkgs/alertmanager-discord.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
{ fetchFromGitHub
|
||||
, buildGoPackage
|
||||
, lib
|
||||
}:
|
||||
let
|
||||
version = "unstable-20210223";
|
||||
src = fetchFromGitHub {
|
||||
owner = "benjojo";
|
||||
repo = "alertmanager-discord";
|
||||
rev = "c27d983dda1eca908cdb04aafe995f61a7d0ca2f";
|
||||
hash = "sha256:1ps5jxysy9w0ns7sjkp4p3109f8pl22ri24vgkfrkggf3mc1lakf";
|
||||
};
|
||||
in
|
||||
buildGoPackage rec {
|
||||
pname = "alertmanager-discord";
|
||||
inherit version src;
|
||||
|
||||
goPackagePath = "github.com/benjojo/alertmanager-discord";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/benjojo/alertmanager-discord";
|
||||
description = "Alertmanager Discord Webhook bridge";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ lukegb ];
|
||||
};
|
||||
}
|
|
@ -24,5 +24,6 @@
|
|||
windows = import ./windows args;
|
||||
hp-rom = import ./hp-rom.nix args;
|
||||
enigma = import ./enigma.nix args;
|
||||
alertmanager-discord = pkgs.callPackage ./alertmanager-discord.nix {};
|
||||
} // (import ./heptapod-runner.nix args)
|
||||
// (import ./lightspeed args)
|
||||
|
|
Loading…
Reference in a new issue