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
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "arp-scan-rs";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kongbytes";
|
|
repo = "arp-scan-rs";
|
|
tag = "v${version}";
|
|
hash = "sha256-CLxeT2olrxRCJ12IZ1PvLW7ZuX0HPsoNuFyxmGBhB8w=";
|
|
};
|
|
|
|
cargoHash = "sha256-lPE/mx4LzSOG1YjGol1f77oox4voZzp9RqrKYZAMoX0=";
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
preCheck = ''
|
|
# Test fails
|
|
substituteInPlace src/network.rs \
|
|
--replace-fail 'Some("one.one.one.one".to_string())' 'None'
|
|
'';
|
|
|
|
versionCheckProgram = [ "${placeholder "out"}/bin/arp-scan" ];
|
|
|
|
versionCheckProgramArg = "--version";
|
|
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = {
|
|
description = "ARP scan tool for fast local network scans";
|
|
homepage = "https://github.com/kongbytes/arp-scan-rs";
|
|
changelog = "https://github.com/kongbytes/arp-scan-rs/releases/tag/v${version}";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "arp-scan";
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|