1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "redis_exporter";
7 src = fetchFromGitHub {
9 repo = "redis_exporter";
11 sha256 = "sha256-EKI/oF0bAiwDYjkdEPi84R8H8wExaCxFK3uPx8MrHk8=";
14 vendorHash = "sha256-nrEglhb22LANgm6hiZToPVPfGpkpxpJ7TQlLW0Z7+/4=";
17 "-X main.BuildVersion=${version}"
18 "-X main.BuildCommitSha=unknown"
19 "-X main.BuildDate=unknown"
22 # needs a redis server
25 passthru.tests = { inherit (nixosTests.prometheus-exporters) redis; };
28 description = "Prometheus exporter for Redis metrics";
29 mainProgram = "redis_exporter";
30 homepage = "https://github.com/oliver006/redis_exporter";
31 license = licenses.mit;
32 maintainers = with maintainers; [ eskytthe srhb ma27 ];