1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "idrac_exporter";
5 version = "unstable-2023-06-29";
7 src = fetchFromGitHub {
9 repo = "idrac_exporter";
10 rev = "3b311e0e6d602fb0938267287f425f341fbf11da";
11 sha256 = "sha256-N8wSjQE25TCXg/+JTsvQk3fjTBgfXTiSGHwZWFDmFKc=";
14 vendorHash = "sha256-iNV4VrdQONq7LXwAc6AaUROHy8TmmloUAL8EmuPtF/o=";
16 patches = [ ./idrac-exporter/config-from-environment.patch ];
18 ldflags = [ "-s" "-w" ];
22 passthru.tests = { inherit (nixosTests.prometheus-exporters) idrac; };
25 inherit (src.meta) homepage;
26 description = "Simple iDRAC exporter for Prometheus";
27 mainProgram = "idrac_exporter";
28 license = licenses.mit;
29 maintainers = with maintainers; [ codec ];