2005-11-03 19:41:36 +00:00
|
|
|
{stdenv, fetchurl, flex, bison}:
|
|
|
|
|
2008-09-01 14:00:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-09-01 14:10:26 +01:00
|
|
|
name = "libpcap-0.9.4";
|
2005-11-03 19:41:36 +00:00
|
|
|
src = fetchurl {
|
2008-09-01 14:00:24 +01:00
|
|
|
url = [
|
|
|
|
"mirror://tcpdump/release/${name}.tar.gz"
|
|
|
|
"http://www.sfr-fresh.com/unix/misc/${name}.tar.gz"
|
|
|
|
];
|
2008-09-01 14:10:26 +01:00
|
|
|
sha256 = "0q0cnn607kfa4y4rbz3glg5lfr8r08s8l08w8fwrr3d6njjzd71p";
|
2005-11-03 19:41:36 +00:00
|
|
|
};
|
|
|
|
buildInputs = [flex bison];
|
2007-01-16 14:30:38 +00:00
|
|
|
configureFlags = "
|
|
|
|
${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}
|
|
|
|
";
|
2005-11-03 19:41:36 +00:00
|
|
|
}
|