2005-11-03 20:41:36 +01:00
|
|
|
{stdenv, fetchurl, flex, bison}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-12-31 19:41:16 +01:00
|
|
|
name = "libpcap-0.9.8";
|
2005-11-03 20:41:36 +01:00
|
|
|
src = fetchurl {
|
2008-07-07 19:10:21 +02:00
|
|
|
url = [ http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz http://www.sfr-fresh.com/unix/misc/libpcap-0.9.8.tar.gz ];
|
2007-12-31 19:41:16 +01:00
|
|
|
sha256 = "1yb2hg8jd1bzq3lbrff1sps4757krvj2c9pm2ixn44a4vsc865f4";
|
2005-11-03 20:41:36 +01:00
|
|
|
};
|
|
|
|
buildInputs = [flex bison];
|
2007-01-16 15:30:38 +01:00
|
|
|
configureFlags = "
|
|
|
|
${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}
|
|
|
|
";
|
2005-11-03 20:41:36 +01:00
|
|
|
}
|