From 674a6dd8fb3062115a3af88c138bf7fc368f6bed Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Wed, 28 Jan 2015 17:32:25 +0100 Subject: [PATCH] Add consul alerts --- pkgs/servers/consul/alerts.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/servers/consul/alerts.nix diff --git a/pkgs/servers/consul/alerts.nix b/pkgs/servers/consul/alerts.nix new file mode 100644 index 000000000000..b3dbb21d5bbb --- /dev/null +++ b/pkgs/servers/consul/alerts.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f80f53292c4b..2e447162a883 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };