Files
2026-06-29 00:27:43 +00:00

40 lines
854 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
libnet,
libpcap,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "arping";
version = "2.29";
src = fetchFromGitHub {
owner = "ThomasHabets";
repo = "arping";
tag = "arping-${finalAttrs.version}";
hash = "sha256-ClbSrV+TjdkvJ2KfchDkjG8c3KotqNkGnoRBy33Bx1o=";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
libnet
libpcap
];
meta = {
description = "Broadcasts a who-has ARP packet on the network and prints answers";
homepage = "https://github.com/ThomasHabets/arping";
changelog = "https://github.com/ThomasHabets/arping/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ michalrus ];
platforms = lib.platforms.unix;
mainProgram = "arping";
};
})