mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
32 lines
833 B
Nix
32 lines
833 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 ];
|
|
};
|
|
}
|