1 { stdenv, lib, fetchFromGitHub, autoPatchelfHook, popt, libxcrypt-legacy }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1w1mdbiwz37wzry1q38h8dyjaa6iggmsb9wcyhhlawwm1vj50w48";
14 buildInputs = [ popt libxcrypt-legacy ];
16 nativeBuildInputs = [ autoPatchelfHook ];
20 doInstallCheck = true;
25 install -Dm755 bin/wmic_ubuntu_x64 $out/bin/wmic
26 install -Dm644 -t $out/share/doc/wmic LICENSE README.md
31 installCheckPhase = ''
32 runHook preInstallCheck
34 $out/bin/wmic --help >/dev/null
36 runHook postInstallCheck
40 description = "WMI client for Linux (binary)";
42 homepage = "https://www.openvas.org";
43 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
44 license = licenses.mit;
45 maintainers = with maintainers; [ peterhoeg ];
46 platforms = [ "x86_64-linux" ];