504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
711 B
Nix
36 lines
711 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, libnet
|
|
, libpcap
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "arping";
|
|
version = "2.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ThomasHabets";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-rME4IDzwYHOURbyuG7G5gnXvUIVoQH2WIeLWacHyoBA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libnet
|
|
libpcap
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Broadcasts a who-has ARP packet on the network and prints answers";
|
|
homepage = "https://github.com/ThomasHabets/arping";
|
|
license = with licenses; [ gpl2Plus ];
|
|
maintainers = with maintainers; [ michalrus ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|