941acbc53f
/usr/include/blablah/socket.h to determine which packet interface to build). svn path=/nixpkgs/trunk/; revision=7696
13 lines
350 B
Nix
13 lines
350 B
Nix
{stdenv, fetchurl, flex, bison}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libpcap-0.9.5";
|
|
src = fetchurl {
|
|
url = http://www.tcpdump.org/release/libpcap-0.9.5.tar.gz;
|
|
md5 = "b0626ad59004fe5767ddd2ce743a2271";
|
|
};
|
|
buildInputs = [flex bison];
|
|
configureFlags = "
|
|
${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}
|
|
";
|
|
}
|