libpcap: 1.7.4 -> 1.8.1

This commit is contained in:
Franz Pletz 2017-01-22 01:43:07 +01:00
parent 608c167f95
commit f3f5045432
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,15 +1,15 @@
{ stdenv, fetchurl, flex, bison }: { stdenv, fetchurl, flex, bison }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libpcap-1.7.4"; name = "libpcap-1.8.1";
src = fetchurl { src = fetchurl {
url = "http://www.tcpdump.org/release/${name}.tar.gz"; url = "http://www.tcpdump.org/release/${name}.tar.gz";
sha256 = "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs"; sha256 = "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7";
}; };
nativeBuildInputs = [ flex bison ]; nativeBuildInputs = [ flex bison ];
# We need to force the autodetection because detection doesn't # We need to force the autodetection because detection doesn't
# work in pure build enviroments. # work in pure build enviroments.
configureFlags = configureFlags =
@ -22,16 +22,17 @@ stdenv.mkDerivation rec {
''; '';
preInstall = ''mkdir -p $out/bin''; preInstall = ''mkdir -p $out/bin'';
crossAttrs = { crossAttrs = {
# Stripping hurts in static libraries # Stripping hurts in static libraries
dontStrip = true; dontStrip = true;
configureFlags = configureFlags ++ [ "ac_cv_linux_vers=2" ]; configureFlags = configureFlags ++ [ "ac_cv_linux_vers=2" ];
}; };
meta = { meta = with stdenv.lib; {
homepage = http://www.tcpdump.org; homepage = http://www.tcpdump.org;
description = "Packet Capture Library"; description = "Packet Capture Library";
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
}; };
} }