@ -1,4 +1,4 @@
{ lib , stdenv , fetchFromGitHub , autoreconfHook
{ lib , stdenv , fetchFromGitHub , fetchpatch , autoreconfHook
, libpcap , texinfo
, libpcap , texinfo
, iptables
, iptables
, gnupgSupport ? true , gnupg , gpgme # Increases dependencies!
, gnupgSupport ? true , gnupg , gpgme # Increases dependencies!
@ -17,6 +17,16 @@ stdenv.mkDerivation rec {
sha256 = " 0 5 k v q h m x j 9 p 2 y 8 3 5 w 7 5 f 3 j v h r 3 8 b b 9 6 c d 5 8 m v f d 7 x i l 9 d h m h n 9 r a " ;
sha256 = " 0 5 k v q h m x j 9 p 2 y 8 3 5 w 7 5 f 3 j v h r 3 8 b b 9 6 c d 5 8 m v f d 7 x i l 9 d h m h n 9 r a " ;
} ;
} ;
patches = [
# Pull patch pending upstream inclusion for -fno-common tollchains:
# https://github.com/mrash/fwknop/pull/319
( fetchpatch {
name = " f n o - c o m m o n . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / m r a s h / f w k n o p / c o m m i t / a 8 2 1 4 f d 5 8 b c 4 6 d 2 3 b 6 4 b 3 a 5 5 d b 0 2 3 c 7 f 5 a 5 e a 6 a f . p a t c h " ;
sha256 = " 0 c p 1 3 5 0 q 6 6 n 4 5 5 h p d 3 r d y d b 9 a n x 6 6 b c i r z a 5 g y y y y 5 2 3 2 z g g 5 8 b i " ;
} )
] ;
nativeBuildInputs = [ autoreconfHook ] ;
nativeBuildInputs = [ autoreconfHook ] ;
buildInputs = [ libpcap texinfo ]
buildInputs = [ libpcap texinfo ]
++ lib . optionals gnupgSupport [ gnupg gpgme . dev ]
++ lib . optionals gnupgSupport [ gnupg gpgme . dev ]