prometheus-redis-exporter: 1.7.0 -> 1.23.1

This commit is contained in:
Robin Gloster 2021-05-11 00:38:59 -05:00
parent a9683cd227
commit ee87b5df96
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,19 +1,17 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "redis_exporter";
version = "1.7.0";
goPackagePath = "github.com/oliver006/redis_exporter";
version = "1.23.1";
src = fetchFromGitHub {
owner = "oliver006";
repo = "redis_exporter";
rev = "v${version}";
sha256 = "0rwaxpylividyxz0snfgck32kvpgjkhg20bmdnlp35cdzxcxi8m1";
sha256 = "0hlzxmc3jnmbym7by89bb73nlr0gw1xj8d88x10zx55kry7p0jfn";
};
goDeps = ./redis-exporter-deps.nix;
vendorSha256 = "11237959ikd7l5glkhfz0g55mbld2hq985b5crwb9bnimaly5lga";
buildFlagsArray = ''
-ldflags=
@ -22,6 +20,9 @@ buildGoPackage rec {
-X main.BuildDate=unknown
'';
# needs a redis server
doCheck = false;
passthru.tests = { inherit (nixosTests.prometheus-exporters) redis; };
meta = with lib; {