mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
consul-alerts: extracted from goPackages
This commit is contained in:
parent
5db153b7a1
commit
6fe27955fd
18
pkgs/servers/monitoring/consul-alerts/default.nix
Normal file
18
pkgs/servers/monitoring/consul-alerts/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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" ]; };
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user