nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 995 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "check-esxi-hardware"; 9 version = "20250716"; 10 format = "other"; 11 12 src = fetchFromGitHub { 13 owner = "Napsty"; 14 repo = "check_esxi_hardware"; 15 tag = version; 16 hash = "sha256-tw1b2ZmkEIdlqov4JoEDc8cR2AmAiZWocKjir4AFIv0="; 17 }; 18 19 dontBuild = true; 20 21 dependencies = with python3Packages; [ 22 packaging 23 pywbem 24 requests 25 setuptools 26 ]; 27 28 doCheck = false; 29 30 installPhase = '' 31 runHook preInstall 32 33 install -Dm755 check_esxi_hardware.py $out/bin/check_esxi_hardware 34 install -Dm644 -t $out/share/doc/${pname} README.md 35 36 runHook postInstall 37 ''; 38 39 meta = { 40 homepage = "https://github.com/Napsty/check_esxi_hardware"; 41 changelog = "https://github.com/Napsty/check_esxi_hardware/releases/tag/${src.tag}"; 42 license = lib.licenses.gpl2Plus; 43 mainProgram = "check_esxi_hardware"; 44 maintainers = with lib.maintainers; [ peterhoeg ]; 45 }; 46}