about summary refs log tree commit diff
path: root/pkgs/development/libraries/libpcap/default.nix
blob: 68db40771e8df1bad12af5f6f5100eddbb8391ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{stdenv, fetchurl, flex, bison}:

stdenv.mkDerivation {
  name = "libpcap-0.9.8";
  src = fetchurl {
      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 ];
      sha256 = "1yb2hg8jd1bzq3lbrff1sps4757krvj2c9pm2ixn44a4vsc865f4";
  };
  buildInputs = [flex bison];
  configureFlags = "
    ${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}
  ";
}