nixpkgs/pkgs/development/libraries/libpcap/default.nix
Ludovic Courtès 687d66d2b9 Downgrade Tcpdump and libpcap as recent versions have vanished.
svn path=/nixpkgs/trunk/; revision=12781
2008-09-01 13:10:26 +00:00

17 lines
443 B
Nix

{stdenv, fetchurl, flex, bison}:
stdenv.mkDerivation rec {
name = "libpcap-0.9.4";
src = fetchurl {
url = [
"mirror://tcpdump/release/${name}.tar.gz"
"http://www.sfr-fresh.com/unix/misc/${name}.tar.gz"
];
sha256 = "0q0cnn607kfa4y4rbz3glg5lfr8r08s8l08w8fwrr3d6njjzd71p";
};
buildInputs = [flex bison];
configureFlags = "
${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}
";
}