diff options
author | Vladimír Čunát <v@cunat.cz> | 2019-09-15 13:18:54 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2019-09-15 13:18:54 +0200 |
commit | b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1 (patch) | |
tree | 1665938bf023545db2afcf42d924a47d7f2918b2 /pkgs/servers/monitoring/plugins/wmic-bin.nix | |
parent | 9f8a7d26798ced69f3185a59383bbb3db6b06bde (diff) | |
parent | c860babfe6a512aa7c7e83751547347a137ecd67 (diff) | |
download | nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar.gz nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar.bz2 nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar.lz nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar.xz nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.tar.zst nixpkgs-b6c6e1f9e8f72ad7caf3b7daec327f77a16ffba1.zip |
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/servers/monitoring/plugins/wmic-bin.nix')
-rw-r--r-- | pkgs/servers/monitoring/plugins/wmic-bin.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/plugins/wmic-bin.nix b/pkgs/servers/monitoring/plugins/wmic-bin.nix new file mode 100644 index 00000000000..c8f4eb77c46 --- /dev/null +++ b/pkgs/servers/monitoring/plugins/wmic-bin.nix @@ -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" ]; + }; +} |