8 pname = "mysqld_exporter";
11 src = fetchFromGitHub {
13 repo = "mysqld_exporter";
15 sha256 = "sha256-2D868CSRoJjgDh0SkpDCTLTVbJ/0kWmLQJMyAKh6s/8=";
18 vendorHash = "sha256-9mrvqY0wtoMVAL0PEJ/NWtFzaQPcQDAJvYPluwd2Nx4=";
22 t = "github.com/prometheus/common/version";
27 "-X ${t}.Version=${version}"
28 "-X ${t}.Revision=${src.rev}"
29 "-X ${t}.Branch=unknown"
30 "-X ${t}.BuildUser=nix@nixpkgs"
31 "-X ${t}.BuildDate=unknown"
34 # skips tests with external dependencies, e.g. on mysqld
40 description = "Prometheus exporter for MySQL server metrics";
41 mainProgram = "mysqld_exporter";
42 homepage = "https://github.com/prometheus/mysqld_exporter";
43 license = licenses.asl20;
44 maintainers = with maintainers; [