nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 libnet,
7 libpcap,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "arping";
12 version = "2.28";
13
14 src = fetchFromGitHub {
15 owner = "ThomasHabets";
16 repo = "arping";
17 tag = "arping-${finalAttrs.version}";
18 hash = "sha256-SS4z/aGu1qpTG1k4Cbj1TlC2kHRrP+7HRQyrIX2Xc/E=";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 ];
24
25 buildInputs = [
26 libnet
27 libpcap
28 ];
29
30 meta = {
31 description = "Broadcasts a who-has ARP packet on the network and prints answers";
32 homepage = "https://github.com/ThomasHabets/arping";
33 changelog = "https://github.com/ThomasHabets/arping/releases/tag/${finalAttrs.src.tag}";
34 license = lib.licenses.gpl2Plus;
35 maintainers = with lib.maintainers; [ michalrus ];
36 platforms = lib.platforms.unix;
37 mainProgram = "arping";
38 };
39})