consul-alerts: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-04 21:49:27 +02:00
parent 5db153b7a1
commit 6fe27955fd
3 changed files with 19 additions and 21 deletions

View File

@ -0,0 +1,18 @@
# This file was generated by go2nix.
{ stdenv, lib, go16Packages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with go16Packages;
buildGoPackage rec {
name = "consul-alerts-${version}";
version = "0.3.3";
rev = "v${version}";
goPackagePath = "github.com/AcalephStorage/consul-alerts";
src = fetchgit {
inherit rev;
url = "https://github.com/AcalephStorage/consul-alerts";
sha256 = "1w0mb20w1yazyh84sa30bsw271c5nm7lsx2qg0g3gf6mxdb63lpq";
};
}

View File

@ -706,7 +706,7 @@ in
consul-ui = callPackage ../servers/consul/ui.nix { };
consul-alerts = goPackages.consul-alerts.bin // { outputs = [ "bin" ]; };
consul-alerts = callPackage ../servers/monitoring/consul-alerts { };
consul-template = goPackages.consul-template.bin // { outputs = [ "bin" ]; };

View File

@ -513,26 +513,6 @@ let
sha256 = "0xmxy8ay0wzd307x7xba3rmigvr6rjlpfk9fmn6ir2nc97ifv3i0";
};
consul-alerts = buildFromGitHub {
rev = "v0.3.3";
owner = "AcalephStorage";
repo = "consul-alerts";
sha256 = "1w0mb20w1yazyh84sa30bsw271c5nm7lsx2qg0g3gf6mxdb63lpq";
renameImports = ''
# Remove all references to included dependency store
rm -rf go/src/github.com/AcalephStorage/consul-alerts/Godeps
govers -d -m github.com/AcalephStorage/consul-alerts/Godeps/_workspace/src/ ""
'';
# Temporary fix for name change
postPatch = ''
sed -i 's,SetApiKey,SetAPIKey,' notifier/opsgenie-notifier.go
'';
buildInputs = [ logrus docopt-go hipchat-go gopherduty consul-api opsgenie-go-sdk influxdb8-client ];
};
consul-migrate = buildFromGitHub {
rev = "678fb10cdeae25ab309e99e655148f0bf65f9710";
version = "2015-05-19";