diff options
author | Peter Hoeg <peter@hoeg.com> | 2019-09-13 17:52:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 17:52:25 +0800 |
commit | e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36 (patch) | |
tree | d58c16a51cc19599fe2d861de66d3a7a967c265b | |
parent | fefca918b26c42507ebf1ef59ca83d1589cca838 (diff) | |
parent | 7881e0bcbea94f5a915da2c9298c0bcb59cca247 (diff) | |
download | nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar.gz nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar.bz2 nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar.lz nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar.xz nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.tar.zst nixlib-e6bb0a70b7be4b16cbcc851bbfa0d50b15f72f36.zip |
Merge pull request #68340 from peterhoeg/p/wmic_bin
wmic-bin: add at 0.5.0
-rw-r--r-- | pkgs/servers/monitoring/plugins/wmic-bin.nix | 46 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 48 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 000000000000..c8f4eb77c468 --- /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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8672f0d81129..c7c5846ebd56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; }; |