@ -1,11 +1,12 @@
{ stdenv , fetchurl , fetchpatch , f lex , bison }:
{ stdenv , fetchurl , flex , bison }:
stdenv . mkDerivation rec {
name = " l i b p c a p - 1 . 9 . 0 " ;
pname = " l i b p c a p " ;
version = " 1 . 9 . 1 " ;
src = fetchurl {
url = " h t t p s : / / w w w . t c p d u m p . o r g / r e l e a s e / ${ name } . t a r . g z " ;
sha256 = " 0 6 b h y d l 4 v r 4 z 9 c 3 v a h l 7 6 f 2 j 9 6 z 1 f b r c l 7 w w i s m g s 4 s r i s 0 8 i n r f " ;
url = " h t t p s : / / w w w . t c p d u m p . o r g / r e l e a s e / ${ p name} - ${ version } . t a r . g z " ;
sha256 = " 1 5 3 h 1 3 7 8 d i q y c 2 7 j j g z 6 g g 5 n x m b 4 d d k 0 0 6 d 9 x g 6 9 n q a v g i i k f l k 3 " ;
} ;
nativeBuildInputs = [ flex bison ] ;
@ -27,15 +28,6 @@ stdenv.mkDerivation rec {
substituteInPlace configure - - replace " - a r c h i 3 8 6 " " "
'' ;
patches = [
# https://github.com/the-tcpdump-group/libpcap/pull/735
( fetchpatch {
name = " a d d - m i s s i n g - l i m i t s - h - i n c l u d e - p r 7 3 5 . p a t c h " ;
url = https://github.com/the-tcpdump-group/libpcap/commit/aafa3512b7b742f5e66a5543e41974cc5e7eebfa.patch ;
sha256 = " 0 5 z b 4 h x 9 g 2 4 g x 0 7 b i 0 2 r p r k 2 r n 7 f d c 1 s s 3 2 4 9 d v 5 x 3 6 q k a s n f h v f " ;
} )
] ;
meta = with stdenv . lib ; {
homepage = https://www.tcpdump.org ;
description = " P a c k e t C a p t u r e L i b r a r y " ;