depot/third_party/nixpkgs/pkgs/tools/networking/tcpdump/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
719 B
Nix

{ stdenv, fetchurl, libpcap, perl }:
stdenv.mkDerivation rec {
pname = "tcpdump";
version = "4.9.3";
src = fetchurl {
url = "http://www.tcpdump.org/release/${pname}-${version}.tar.gz";
sha256 = "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c";
};
postPatch = ''
patchShebangs tests
'';
checkInputs = [ perl ];
buildInputs = [ libpcap ];
configureFlags = stdenv.lib.optional
(stdenv.hostPlatform != stdenv.buildPlatform)
"ac_cv_linux_vers=2";
meta = {
description = "Network sniffer";
homepage = "http://www.tcpdump.org/";
license = "BSD-style";
maintainers = with stdenv.lib.maintainers; [ globin ];
platforms = stdenv.lib.platforms.unix;
};
}