From 986ab982b5b59137418ca2ae07fc8ac4fbb62134 Mon Sep 17 00:00:00 2001 From: Michal Rus Date: Sun, 18 Feb 2018 14:10:53 +0100 Subject: [PATCH] arping: init at 2.19 --- pkgs/tools/networking/arping/default.nix | 25 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/networking/arping/default.nix diff --git a/pkgs/tools/networking/arping/default.nix b/pkgs/tools/networking/arping/default.nix new file mode 100644 index 000000000000..4358d22142d9 --- /dev/null +++ b/pkgs/tools/networking/arping/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, libnet, libpcap }: + +stdenv.mkDerivation rec { + version = "2.19"; + name = "arping-${version}"; + + buildInputs = [ libnet libpcap ]; + + src = fetchFromGitHub { + owner = "ThomasHabets"; + repo = "arping"; + rev = "arping-${version}"; + sha256 = "10gpil6ic17x8v628vhz9s98rnw1k8ci2xs56i52pr103irirczw"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + meta = with stdenv.lib; { + description = "Broadcasts a who-has ARP packet on the network and prints answers"; + homepage = https://github.com/ThomasHabets/arping; + license = with licenses; [ gpl2 ]; + maintainers = [ maintainers.michalrus ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 55b51326859d..3e5ead6b0402 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1366,6 +1366,8 @@ with pkgs; appdata-tools = callPackage ../tools/misc/appdata-tools { }; + arping = callPackage ../tools/networking/arping { }; + asciidoc = callPackage ../tools/typesetting/asciidoc { inherit (python2Packages) matplotlib numpy aafigure recursivePthLoader; w3m = w3m-batch;