mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
446b01489a
what's for. It builds and runs equally for me with or without it. I couldn't find notes in svn log about it. svn path=/nixpkgs/trunk/; revision=32996
25 lines
647 B
Nix
25 lines
647 B
Nix
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcpdump-4.2.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.tcpdump.org/release/${name}.tar.gz";
|
|
sha256 = "1zwv9zp169dwqwwwi6lfd3fhiayiq81ijqmwi0pfdvw63skfjmsl";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|