nixpkgs/pkgs/by-name/ne/netscanner/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
935 B
Nix
Raw Normal View History

2024-03-11 05:37:39 +03:00
{ lib
, rustPlatform
, fetchFromGitHub
, makeWrapper
, iw
}:
let
pname = "netscanner";
2024-07-04 05:36:31 +03:00
version = "0.5.2";
2024-03-11 05:37:39 +03:00
in
rustPlatform.buildRustPackage {
inherit pname version;
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
owner = "Chleba";
repo = "netscanner";
rev = "refs/tags/v${version}";
2024-07-04 05:36:31 +03:00
hash = "sha256-gVwI5dGQqSQf2wR7oKMTRIqseUbAEDTTuQ51S6dvEFw=";
2024-03-11 05:37:39 +03:00
};
2024-07-04 05:36:31 +03:00
cargoHash = "sha256-30VSeBbaVWVEO14eUx28HSymfkCxH0IZmEN4cnJ9wIk=";
2024-03-11 05:37:39 +03:00
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";
};
}