Skip to content

Commit

Permalink
check-esxi-hardware: 20181001 -> 20200710
Browse files Browse the repository at this point in the history
  • Loading branch information
freezeboy authored and Jonathan Ringer committed Nov 23, 2020
1 parent b8ba234 commit b29a031
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkgs/servers/monitoring/plugins/esxi.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{ stdenv, fetchFromGitHub, python2Packages }:
{ stdenv, fetchFromGitHub, python3Packages }:

let
bName = "check_esxi_hardware";
pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName;

in python2Packages.buildPythonApplication rec {
name = "${pName}-${version}";
version = "20181001";
in python3Packages.buildPythonApplication rec {
pname = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName;
version = "20200710";

src = fetchFromGitHub {
owner = "Napsty";
repo = bName;
rev = version;
sha256 = "0azfacxcnnxxfqzrhh29k8cnjyr88gz35bi6h8fq931fl3plv10l";
sha256 = "EC6np/01S+5SA2H9z5psJ9Pq/YoEyGdHL9wHUKKsNas=";
};

dontBuild = true;
Expand All @@ -21,13 +20,13 @@ in python2Packages.buildPythonApplication rec {
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin ${bName}.py
install -Dm644 -t $out/share/doc/${pName} README.md
install -Dm755 ${bName}.py $out/bin/${bName}
install -Dm644 -t $out/share/doc/${pname} README.md
runHook postInstall
'';

propagatedBuildInputs = with python2Packages; [ pywbem ];
propagatedBuildInputs = with python3Packages; [ pywbem requests setuptools ];

meta = with stdenv.lib; {
homepage = "https://www.claudiokuenzler.com/nagios-plugins/";
Expand Down

0 comments on commit b29a031

Please sign in to comment.