about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-05-15 23:49:18 +0800
committerGitHub <noreply@github.com>2022-05-15 23:49:18 +0800
commit782b483c9679d45f1941706947fc0cf88f382ef3 (patch)
tree78e630767b47a10c69802b4561aa88d3f1cdcf32
parenta1408a4b7744a2fafad60d64d68649eb9328b300 (diff)
parentf38b473946022c1feffbbda687c72f7b0adfd406 (diff)
Merge pull request #168078 from aaronjheng/consul_exporter
prometheus-consul-exporter: 0.7.1 -> 0.8.0
-rw-r--r--pkgs/servers/monitoring/prometheus/consul-exporter.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/servers/monitoring/prometheus/consul-exporter.nix b/pkgs/servers/monitoring/prometheus/consul-exporter.nix
index c3cc7eff90aa3..b9475c97c1a62 100644
--- a/pkgs/servers/monitoring/prometheus/consul-exporter.nix
+++ b/pkgs/servers/monitoring/prometheus/consul-exporter.nix
@@ -1,18 +1,20 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "consul_exporter";
-  version = "0.7.1";
-
-  goPackagePath = "github.com/prometheus/consul_exporter";
+  version = "0.8.0";
 
   src = fetchFromGitHub {
     owner = "prometheus";
     repo = "consul_exporter";
     rev = "v${version}";
-    sha256 = "16ibafcbpiplsh1awcvblzzf2cbr4baf8wiwpdpibgmcwwf9m5ya";
+    sha256 = "sha256-5odAKMWK2tDZ3a+bIVIdPgzxrW64hF8nNqItGO7sODI=";
   };
 
+  vendorSha256 = "sha256-vbaiHeQRo9hsHa/10f4202xLe9mduELRJMCDFuyKlW0=";
+
+  ldflags = [ "-s" "-w" ];
+
   meta = with lib; {
     description = "Prometheus exporter for Consul metrics";
     homepage = "https://github.com/prometheus/consul_exporter";