mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, autoPatchelfHook, popt, libxcrypt-legacy }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wmic-bin";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "R-Vision";
|
|
repo = "wmi-client";
|
|
rev = version;
|
|
sha256 = "1w1mdbiwz37wzry1q38h8dyjaa6iggmsb9wcyhhlawwm1vj50w48";
|
|
};
|
|
|
|
buildInputs = [ popt libxcrypt-legacy ];
|
|
|
|
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 lib; {
|
|
description = "WMI client for Linux (binary)";
|
|
mainProgram = "wmic";
|
|
homepage = "https://www.openvas.org";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|