5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
38 lines
935 B
Nix
38 lines
935 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, iw
|
|
}:
|
|
let
|
|
pname = "netscanner";
|
|
version = "0.4.5";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Chleba";
|
|
repo = "netscanner";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-mR+jazZ2Xnf5xuWbVrFCfGOR+sjEUWL3WqHJynIHVFQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-+FTbvS4wqBjEL+uWYKhHQp0uMmrvVPYwxdQeZ4cWrhw=";
|
|
|
|
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";
|
|
};
|
|
}
|