40 lines
854 B
Nix
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";
|
|
};
|
|
})
|