3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/dhcpdump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
718 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libpcap, perl }:
2015-02-05 13:52:14 +00:00
stdenv.mkDerivation rec {
pname = "dhcpdump";
version = "1.8";
2015-02-05 13:52:14 +00:00
src = fetchurl {
url = "mirror://ubuntu/pool/universe/d/dhcpdump/dhcpdump_${version}.orig.tar.gz";
2015-02-05 13:52:14 +00:00
sha256 = "143iyzkqvhj4dscwqs75jvfr4wvzrs11ck3fqn5p7yv2h50vjpkd";
};
buildInputs = [libpcap perl];
hardeningDisable = [ "fortify" ];
2016-02-12 00:40:58 +00:00
2015-02-05 13:52:14 +00:00
installPhase = ''
mkdir -pv $out/bin
cp dhcpdump $out/bin
'';
meta = with lib; {
2015-02-05 13:52:14 +00:00
description = "A tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
homepage = "http://www.mavetju.org/unix/dhcpdump-man.php";
2018-09-10 20:20:19 +01:00
platforms = platforms.linux;
license = licenses.bsd2;
2015-02-05 13:52:14 +00:00
};
}