depot/third_party/nixpkgs/pkgs/tools/networking/dhcpdump/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

27 lines
735 B
Nix

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