From 1f639dce37d0e8b49ea4a4ad8712ddf1d4cc454c Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 17 Jun 2023 16:42:37 +0200 Subject: [PATCH] prometheus-redis-exporter: 1.50.0 -> 1.51.0 ChangeLog: https://github.com/oliver006/redis_exporter/releases/tag/v1.51.0 --- .../monitoring/prometheus/redis-exporter.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/redis-exporter.nix b/pkgs/servers/monitoring/prometheus/redis-exporter.nix index c744aaee92a8..b6641914ad35 100644 --- a/pkgs/servers/monitoring/prometheus/redis-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/redis-exporter.nix @@ -1,17 +1,25 @@ -{ lib, buildGoModule, fetchFromGitHub, nixosTests }: +{ lib, buildGoModule, fetchFromGitHub, nixosTests, fetchpatch }: buildGoModule rec { pname = "redis_exporter"; - version = "1.50.0"; + version = "1.51.0"; src = fetchFromGitHub { owner = "oliver006"; repo = "redis_exporter"; rev = "v${version}"; - sha256 = "sha256-FP5X+2OFEFUJWtMKbVgcCkNSV3BtQyMVsXGD6dn3mjY="; + sha256 = "sha256-NvkAwUrygjys25lcTxtRnrex4+XIK2yzqKkk26f4cmE="; }; - vendorHash = "sha256-Owfxy7WkucQ6BM8yjnZg9/8CgopGTtbQTTUuxoT3RRE="; + patches = [ + # https://github.com/oliver006/redis_exporter/pull/812 + (fetchpatch { + url = "https://github.com/Ma27/redis_exporter/commit/250b2e9febbadef326ca9ae68c372dfaabd53ca9.patch"; + sha256 = "sha256-G1OIUwlFZ06UWudWvc6v1YFcRz05ji1326nUcd9zYDc="; + }) + ]; + + vendorHash = "sha256-S7cEaFBgyvDmsNq+NvqtC8I2SRL/ngXUuNdx6TN/riI="; ldflags = [ "-X main.BuildVersion=${version}"