1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/tools/networking/dhcpdump/default.nix
2019-08-28 11:07:32 +00:00

27 lines
708 B
Nix

{ stdenv, fetchurl, libpcap, perl }:
stdenv.mkDerivation {
name = "dhcpdump-1.8";
src = fetchurl {
url = "http://archive.ubuntu.com/ubuntu/pool/universe/d/dhcpdump/dhcpdump_1.8.orig.tar.gz";
sha256 = "143iyzkqvhj4dscwqs75jvfr4wvzrs11ck3fqn5p7yv2h50vjpkd";
};
buildInputs = [libpcap perl];
hardeningDisable = [ "fortify" ];
installPhase = ''
mkdir -pv $out/bin
cp dhcpdump $out/bin
'';
meta = with stdenv.lib; {
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;
platforms = platforms.linux;
license = licenses.bsd2;
};
}