Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
45 lines
996 B
Nix
45 lines
996 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "check-esxi-hardware";
|
|
version = "20221230";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Napsty";
|
|
repo = "check_esxi_hardware";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-u0LklUrzj92mzSzD61C/lxA37bx6nWlRzE1+1fcTL14=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
dependencies = with python3Packages; [
|
|
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/${version}";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "check_esxi_hardware";
|
|
maintainers = with lib.maintainers; [ peterhoeg ];
|
|
};
|
|
}
|