39 lines
944 B
Nix
39 lines
944 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
iw,
|
|
}:
|
|
let
|
|
pname = "netscanner";
|
|
version = "0.6.1";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Chleba";
|
|
repo = "netscanner";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/EHg8YnsGwFlXEfdsh1eiWoNmapDHGOws4lkEGqjhoo=";
|
|
};
|
|
|
|
cargoHash = "sha256-uqTSr+c+pDAi2r6roHeZfW0LCyN/1J0M2+8grdAtX7U=";
|
|
|
|
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";
|
|
};
|
|
}
|