diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/dhcpdump')
-rw-r--r-- | nixpkgs/pkgs/tools/networking/dhcpdump/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/networking/dhcpdump/default.nix b/nixpkgs/pkgs/tools/networking/dhcpdump/default.nix new file mode 100644 index 000000000000..8ed9d1d1d706 --- /dev/null +++ b/nixpkgs/pkgs/tools/networking/dhcpdump/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, libpcap, perl }: + +stdenv.mkDerivation rec { + 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; + }; +} |