summary refs log tree commit diff
path: root/pkgs/servers/consul
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2015-01-28 17:32:25 +0100
committerJaka Hudoklin <jakahudoklin@gmail.com>2015-02-07 22:03:23 +0100
commit674a6dd8fb3062115a3af88c138bf7fc368f6bed (patch)
tree0a782f31ea72c15d93974ad308bfbc4aef4ff5b7 /pkgs/servers/consul
parent8b236f2daf0f364156ef5a541b287e8cc9e6b8d8 (diff)
downloadnixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar.gz
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar.bz2
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar.lz
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar.xz
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.tar.zst
nixpkgs-674a6dd8fb3062115a3af88c138bf7fc368f6bed.zip
Add consul alerts
Diffstat (limited to 'pkgs/servers/consul')
-rw-r--r--pkgs/servers/consul/alerts.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/consul/alerts.nix b/pkgs/servers/consul/alerts.nix
new file mode 100644
index 00000000000..b3dbb21d5bb
--- /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;
+  };
+}