mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
Add consul alerts
This commit is contained in:
parent
8b236f2daf
commit
674a6dd8fb
27
pkgs/servers/consul/alerts.nix
Normal file
27
pkgs/servers/consul/alerts.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, goPackages, fetchFromGitHub }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "consul-alerts-${version}";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AcalephStorage";
|
||||
repo = "consul-alerts";
|
||||
rev = "v${version}";
|
||||
sha256 = "02rgz68g3i408biq2aqilpqraqirzmba9mh7avdga5bljp427jgn";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/AcalephStorage/consul-alerts";
|
||||
dontInstallSrc = true;
|
||||
subPackages = [ "./" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple daemon to send notifications based on Consul health checks";
|
||||
homepage = https://github.com/AcalephStorage/consul-alerts;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ offline ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -699,6 +699,8 @@ let
|
|||
|
||||
consul_ui = consul.ui;
|
||||
|
||||
consul-alerts = callPackage ../servers/consul/alerts.nix { };
|
||||
|
||||
corosync = callPackage ../servers/corosync { };
|
||||
|
||||
cherrytree = callPackage ../applications/misc/cherrytree { };
|
||||
|
|
Loading…
Reference in a new issue