about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-10-01 01:28:13 +0000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-10-11 12:31:09 +1000
commitec26b85a34eaa16c57f033d9802231dad3341de2 (patch)
tree9cd7acf706a98e2a436e993c5eb2706268dc9904 /pkgs/servers
parent16f5304c47f55607541acc1563190dd309a72ac0 (diff)
prometheus-nats-exporter: unpin go1.17
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/monitoring/prometheus/nats-exporter.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/nats-exporter.nix b/pkgs/servers/monitoring/prometheus/nats-exporter.nix
index 8019599752b68..4a7b3507730d8 100644
--- a/pkgs/servers/monitoring/prometheus/nats-exporter.nix
+++ b/pkgs/servers/monitoring/prometheus/nats-exporter.nix
@@ -13,6 +13,11 @@ buildGoModule rec {
 
   vendorSha256 = "sha256-hlC/s0pYhNHMv3i7Nmu4r6jnXGpc6raScv5dO32+tfQ=";
 
+  preCheck = ''
+    # Fix `insecure algorithm SHA1-RSA` problem
+    export GODEBUG=x509sha1=1;
+  '';
+
   meta = with lib; {
     description = "Exporter for NATS metrics";
     homepage = "https://github.com/nats-io/prometheus-nats-exporter";