Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / idrac-exporter.nix
blob1160984f00230f6b4cee2da3c365725db17d49fa
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "idrac_exporter";
5   version = "unstable-2023-06-29";
7   src = fetchFromGitHub {
8     owner = "mrlhansen";
9     repo = "idrac_exporter";
10     rev = "3b311e0e6d602fb0938267287f425f341fbf11da";
11     sha256 = "sha256-N8wSjQE25TCXg/+JTsvQk3fjTBgfXTiSGHwZWFDmFKc=";
12   };
14   vendorHash = "sha256-iNV4VrdQONq7LXwAc6AaUROHy8TmmloUAL8EmuPtF/o=";
16   patches = [ ./idrac-exporter/config-from-environment.patch ];
18   ldflags = [ "-s" "-w" ];
20   doCheck = true;
22   passthru.tests = { inherit (nixosTests.prometheus-exporters) idrac; };
24   meta = with lib; {
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 ];
30   };