arp-scan: add missing dependency

This commit is contained in:
Eshin Kunishima 2017-12-07 20:12:02 +09:00
parent 73f76fac1b
commit a794c75bb2
No known key found for this signature in database
GPG Key ID: 3232CD58BDF165FF

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, libpcap }:
{ stdenv, fetchFromGitHub, autoreconfHook, libpcap, makeWrapper, perlPackages }:
stdenv.mkDerivation rec {
name = "arp-scan-${version}";
@ -11,8 +11,21 @@ stdenv.mkDerivation rec {
sha256 = "15zpfdybk2kh98shqs8qqd0f9nyi2ch2wcyv729rfj7yp0hif5mb";
};
perlModules = with perlPackages; [
HTTPDate
HTTPMessage
LWPUserAgent
URI
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libpcap ];
buildInputs = [ libpcap makeWrapper ];
postInstall = ''
for name in get-{oui,iab}; do
wrapProgram "$out/bin/$name" --set PERL5LIB "${stdenv.lib.makePerlPath perlModules }"
done;
'';
meta = with stdenv.lib; {
description = "ARP scanning and fingerprinting tool";