nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / wm / wmic-bin / package.nix
blobe557ffd76764beb80b8f67da3d5fd68bbc08254d
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   autoPatchelfHook,
6   popt,
7   libxcrypt-legacy,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "wmic-bin";
12   version = "0.5.0";
14   src = fetchFromGitHub {
15     owner = "R-Vision";
16     repo = "wmi-client";
17     rev = version;
18     sha256 = "1w1mdbiwz37wzry1q38h8dyjaa6iggmsb9wcyhhlawwm1vj50w48";
19   };
21   buildInputs = [
22     popt
23     libxcrypt-legacy
24   ];
26   nativeBuildInputs = [ autoPatchelfHook ];
28   dontConfigure = true;
29   dontBuild = true;
30   doInstallCheck = true;
32   installPhase = ''
33     runHook preInstall
35     install -Dm755 bin/wmic_ubuntu_x64 $out/bin/wmic
36     install -Dm644 -t $out/share/doc/wmic LICENSE README.md
38     runHook postInstall
39   '';
41   installCheckPhase = ''
42     runHook preInstallCheck
44     $out/bin/wmic --help >/dev/null
46     runHook postInstallCheck
47   '';
49   meta = with lib; {
50     description = "WMI client for Linux (binary)";
51     mainProgram = "wmic";
52     homepage = "https://www.openvas.org";
53     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
54     license = licenses.mit;
55     maintainers = with maintainers; [ peterhoeg ];
56     platforms = [ "x86_64-linux" ];
57   };