Diff: https://github.com/Chleba/netscanner/compare/refs/tags/v0.6.2...v0.6.3 Changelog: https://github.com/Chleba/netscanner/releases/tag/v0.6.3
41 lines
964 B
Nix
41 lines
964 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
iw,
|
|
}:
|
|
let
|
|
pname = "netscanner";
|
|
version = "0.6.3";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Chleba";
|
|
repo = "netscanner";
|
|
tag = "v${version}";
|
|
hash = "sha256-z39450ebIBHwdiC1FLF6v23la45ad5h5iupF6PAAjzc=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-i+btU1ovqPGzhXi8IPZonSAdlpcbMPrWSbL7COKou9M=";
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/netscanner \
|
|
--prefix PATH : "${lib.makeBinPath [ iw ]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Network scanner with features like WiFi scanning, packetdump and more";
|
|
homepage = "https://github.com/Chleba/netscanner";
|
|
changelog = "https://github.com/Chleba/netscanner/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ NotAShelf ];
|
|
mainProgram = "netscanner";
|
|
};
|
|
}
|