From d91fc667cb2fb4ef5c35df7564b198d0050a7fec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 31 May 2026 23:22:24 +0200 Subject: [PATCH] netscan: init at 0.8.1 TUI workflow for nmap with scan history https://github.com/matthart1983/netscan --- pkgs/by-name/ne/netscan/package.nix | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/ne/netscan/package.nix diff --git a/pkgs/by-name/ne/netscan/package.nix b/pkgs/by-name/ne/netscan/package.nix new file mode 100644 index 000000000000..35695cadd379 --- /dev/null +++ b/pkgs/by-name/ne/netscan/package.nix @@ -0,0 +1,43 @@ +{ + lib, + fetchFromGitHub, + pkg-config, + rustPlatform, + sqlite, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "netscan"; + version = "0.8.1"; + + src = fetchFromGitHub { + owner = "matthart1983"; + repo = "netscan"; + tag = "v${finalAttrs.version}"; + hash = "sha256-eWUUEdin8v8NIDEDJaHzKYaMyHeyp6d0ar23GkWvZLY="; + }; + + __structuredAttrs = true; + + cargoHash = "sha256-4mhVNr62NrCPR5W7Qkfg2LAPInOltyfG/nyITROEKJY="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ sqlite ]; + + nativeCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + versionCheckProgramArg = [ "-V" ]; + + meta = { + description = "TUI workflow for nmap with scan history"; + homepage = "https://github.com/matthart1983/netscan"; + changelog = "https://github.com/matthart1983/netscan/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "netscan"; + }; +})