mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
38 lines
739 B
Nix
38 lines
739 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, libnet
|
|
, libpcap
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "arping";
|
|
version = "2.25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ThomasHabets";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-SAdbgPmApmFToYrAm8acUapZMEMQr5MO7bQOTO2hd2c=";
|
|
};
|
|
|
|
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;
|
|
mainProgram = "arping";
|
|
};
|
|
}
|