nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.2 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 nmap, 5 perl, 6 python3, 7 rustPlatform, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "rustscan"; 12 version = "2.4.1"; 13 14 src = fetchFromGitHub { 15 owner = "RustScan"; 16 repo = "RustScan"; 17 tag = version; 18 hash = "sha256-+qPSeDpOeCq+KwZb5ANXx6z+pYbgdT1hVgcrSzxyGp0="; 19 }; 20 21 cargoHash = "sha256-cUuInYCT2jzen9gswfFGtKum6w2X/SiKA2ccdmxk38A="; 22 23 postPatch = '' 24 substituteInPlace src/scripts/mod.rs \ 25 --replace-fail 'call_format = "nmap' 'call_format = "${nmap}/bin/nmap' 26 patchShebangs fixtures/.rustscan_scripts/* 27 ''; 28 29 nativeCheckInputs = [ 30 perl 31 python3 32 ]; 33 34 checkFlags = [ 35 # These tests require network access 36 "--skip=parse_correct_host_addresses" 37 "--skip=parse_hosts_file_and_incorrect_hosts" 38 "--skip=resolver_args_google_dns" 39 "--skip=resolver_default_cloudflare" 40 ]; 41 42 meta = { 43 description = "Faster Nmap Scanning with Rust"; 44 homepage = "https://github.com/RustScan/RustScan"; 45 changelog = "https://github.com/RustScan/RustScan/releases/tag/${version}"; 46 license = lib.licenses.gpl3Only; 47 maintainers = [ ]; 48 mainProgram = "rustscan"; 49 }; 50}