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
47 lines
995 B
Nix
47 lines
995 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "check-esxi-hardware";
|
|
version = "20250716";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Napsty";
|
|
repo = "check_esxi_hardware";
|
|
tag = version;
|
|
hash = "sha256-tw1b2ZmkEIdlqov4JoEDc8cR2AmAiZWocKjir4AFIv0=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
dependencies = with python3Packages; [
|
|
packaging
|
|
pywbem
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 check_esxi_hardware.py $out/bin/check_esxi_hardware
|
|
install -Dm644 -t $out/share/doc/${pname} README.md
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Napsty/check_esxi_hardware";
|
|
changelog = "https://github.com/Napsty/check_esxi_hardware/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "check_esxi_hardware";
|
|
maintainers = with lib.maintainers; [ peterhoeg ];
|
|
};
|
|
}
|