mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
aff1f4ab94
The following parameters are now available: * hardeningDisable To disable specific hardening flags * hardeningEnable To enable specific hardening flags Only the cc-wrapper supports this right now, but these may be reused by other wrappers, builders or setup hooks. cc-wrapper supports the following flags: * fortify * stackprotector * pie (disabled by default) * pic * strictoverflow * format * relro * bindnow
26 lines
677 B
Nix
26 lines
677 B
Nix
{ 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 = {
|
|
description = "A tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
|
|
homepage = http://packages.ubuntu.com/ru/lucid/dhcpdump;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|