Merge pull request #294899 from NotAShelf/init-netscanner

netscanner: init at 0.4.1
This commit is contained in:
éclairevoyant 2024-03-13 12:26:08 +00:00 committed by GitHub
commit 68538c362b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,38 @@
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, iw
}:
let
pname = "netscanner";
version = "0.4.1";
in
rustPlatform.buildRustPackage {
inherit pname version;
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
owner = "Chleba";
repo = "netscanner";
rev = "refs/tags/v${version}";
hash = "sha256-E9WQpWqXWIhY1cq/5hqBbNBffe/nFLBelnFPW0tS5Ng=";
};
cargoHash = "sha256-G2ePiVmHyZ7a4gn7ZGg5y4lhfbWoWGh4+fG9pMHZueg=";
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";
};
}