2023-03-26 07:50:41 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoPatchelfHook, popt, libxcrypt-legacy }:
|
2018-04-18 07:15:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wmic-bin";
|
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "R-Vision";
|
|
|
|
repo = "wmi-client";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1w1mdbiwz37wzry1q38h8dyjaa6iggmsb9wcyhhlawwm1vj50w48";
|
|
|
|
};
|
|
|
|
|
2023-03-26 07:50:41 +00:00
|
|
|
buildInputs = [ popt libxcrypt-legacy ];
|
2018-04-18 07:15:24 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-18 07:15:24 +00:00
|
|
|
description = "WMI client for Linux (binary)";
|
|
|
|
homepage = "https://www.openvas.org";
|
2022-06-16 23:40:08 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2018-04-18 07:15:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|