1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/tools/networking/tcpdump/default.nix

26 lines
680 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libpcap, enableStatic ? false }:
stdenv.mkDerivation rec {
2013-12-23 03:15:40 +00:00
name = "tcpdump-4.5.1";
src = fetchurl {
url = "http://www.tcpdump.org/release/${name}.tar.gz";
2013-12-23 03:15:40 +00:00
sha256 = "15hb7zkzd66nag102qbv100hcnf7frglbkylmr8adwr8f5jkkaql";
};
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 = "Network sniffer";
homepage = http://www.tcpdump.org/;
license = "BSD-style";
2014-01-28 17:11:00 +00:00
maintainers = stdenv.lib.maintainers.mornfall;
};
}