diff --git a/nix/pkgs/alertmanager-discord.nix b/nix/pkgs/alertmanager-discord.nix new file mode 100644 index 0000000000..73ef8db305 --- /dev/null +++ b/nix/pkgs/alertmanager-discord.nix @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# 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 ]; + }; +} diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 45d130a85b..8952687362 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -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)