11 pname = "ipmi_exporter";
14 src = fetchFromGitHub {
15 owner = "prometheus-community";
16 repo = "ipmi_exporter";
18 hash = "sha256-0JNt3XbXGbAfaBQ13X/vrBhhN39hY4kwoBQ9obxsAd0=";
21 vendorHash = "sha256-dUf++LhoKWJxQfu9Latr8mCkeid5EAi+6yRdWDkTeP8=";
23 nativeBuildInputs = [ makeWrapper ];
26 wrapProgram $out/bin/ipmi_exporter --prefix PATH : ${lib.makeBinPath [ freeipmi ]}
29 passthru.tests = { inherit (nixosTests.prometheus-exporters) ipmi; };
34 "-X github.com/prometheus/common/version.Version=${version}"
35 "-X github.com/prometheus/common/version.Revision=0000000"
36 "-X github.com/prometheus/common/version.Branch=unknown"
37 "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
38 "-X github.com/prometheus/common/version.BuildDate=unknown"
42 description = "IPMI exporter for Prometheus";
43 mainProgram = "ipmi_exporter";
44 homepage = "https://github.com/prometheus-community/ipmi_exporter";
45 changelog = "https://github.com/prometheus-community/ipmi_exporter/blob/${src.rev}/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ snaar ];