mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:48:10 +00:00
6ff77b7f6c
svn path=/nixpkgs/trunk/; revision=24919
25 lines
647 B
Nix
25 lines
647 B
Nix
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcpdump-4.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.tcpdump.org/release/${name}.tar.gz";
|
|
sha256 = "02kz3sghpg16p26dhid8ma67pxil8x5jqdd83fvdnypcc6ylpkg6";
|
|
};
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
crossAttrs = {
|
|
LDFLAGS = if enableStatic then "-static" else "";
|
|
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
|
(stdenv.cross.platform.kernelMajor == "2.4") "--disable-ipv6");
|
|
};
|
|
|
|
meta = {
|
|
description = "tcpdump, a famous network sniffer";
|
|
homepage = http://www.tcpdump.org/;
|
|
license = "BSD-style";
|
|
};
|
|
}
|