mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #68340 from peterhoeg/p/wmic_bin
wmic-bin: add at 0.5.0
This commit is contained in:
commit
e6bb0a70b7
46
pkgs/servers/monitoring/plugins/wmic-bin.nix
Normal file
46
pkgs/servers/monitoring/plugins/wmic-bin.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ stdenv, lib, fetchFromGitHub, autoPatchelfHook, popt }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wmic-bin";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "R-Vision";
|
||||
repo = "wmi-client";
|
||||
rev = version;
|
||||
sha256 = "1w1mdbiwz37wzry1q38h8dyjaa6iggmsb9wcyhhlawwm1vj50w48";
|
||||
};
|
||||
|
||||
buildInputs = [ popt ];
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
doInstallCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 bin/wmic_ubuntu_x64 $out/bin/wmic
|
||||
install -Dm644 -t $out/share/doc/wmic LICENSE README.md
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/wmic --help >/dev/null
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "WMI client for Linux (binary)";
|
||||
homepage = "https://www.openvas.org";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -24686,6 +24686,8 @@ in
|
||||
|
||||
hy = callPackage ../development/interpreters/hy {};
|
||||
|
||||
wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { };
|
||||
|
||||
check-uptime = callPackage ../servers/monitoring/plugins/uptime.nix { };
|
||||
|
||||
ghc-standalone-archive = callPackage ../os-specific/darwin/ghc-standalone-archive { inherit (darwin) cctools; };
|
||||
|
Loading…
Reference in New Issue
Block a user