1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, libnet
6, libpcap
7}:
8
9stdenv.mkDerivation rec {
10 pname = "arping";
11 version = "2.23";
12
13 src = fetchFromGitHub {
14 owner = "ThomasHabets";
15 repo = pname;
16 rev = "${pname}-${version}";
17 hash = "sha256-Yn0EFb23VJvcVluQhwGHg9cdnZ8LKlBEds7cq8Irftc=";
18 };
19
20 nativeBuildInputs = [
21 autoreconfHook
22 ];
23
24 buildInputs = [
25 libnet
26 libpcap
27 ];
28
29 meta = with lib; {
30 description = "Broadcasts a who-has ARP packet on the network and prints answers";
31 homepage = "https://github.com/ThomasHabets/arping";
32 license = with licenses; [ gpl2Plus ];
33 maintainers = with maintainers; [ michalrus ];
34 platforms = platforms.unix;
35 };
36}