Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
852 B
Nix
40 lines
852 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "idrac_exporter";
|
|
version = "unstable-2023-06-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mrlhansen";
|
|
repo = "idrac_exporter";
|
|
rev = "3b311e0e6d602fb0938267287f425f341fbf11da";
|
|
sha256 = "sha256-N8wSjQE25TCXg/+JTsvQk3fjTBgfXTiSGHwZWFDmFKc=";
|
|
};
|
|
|
|
vendorHash = "sha256-iNV4VrdQONq7LXwAc6AaUROHy8TmmloUAL8EmuPtF/o=";
|
|
|
|
patches = [ ./idrac-exporter/config-from-environment.patch ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) idrac; };
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Simple iDRAC exporter for Prometheus";
|
|
mainProgram = "idrac_exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ codec ];
|
|
};
|
|
}
|