Files
nixpkgs/pkgs/by-name/ru/rustscan/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
nmap,
perl,
python3,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "rustscan";
version = "2.4.1";
src = fetchFromGitHub {
owner = "RustScan";
repo = "RustScan";
tag = version;
hash = "sha256-+qPSeDpOeCq+KwZb5ANXx6z+pYbgdT1hVgcrSzxyGp0=";
};
cargoHash = "sha256-cUuInYCT2jzen9gswfFGtKum6w2X/SiKA2ccdmxk38A=";
postPatch = ''
substituteInPlace src/scripts/mod.rs \
--replace-fail 'call_format = "nmap' 'call_format = "${nmap}/bin/nmap'
patchShebangs fixtures/.rustscan_scripts/*
'';
nativeCheckInputs = [
perl
python3
];
checkFlags = [
# These tests require network access
"--skip=parse_correct_host_addresses"
"--skip=parse_hosts_file_and_incorrect_hosts"
"--skip=resolver_args_google_dns"
"--skip=resolver_default_cloudflare"
];
meta = {
description = "Faster Nmap Scanning with Rust";
homepage = "https://github.com/RustScan/RustScan";
changelog = "https://github.com/RustScan/RustScan/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "rustscan";
};
}