@ -1,4 +1,4 @@
{ lib , stdenv , fetchFromGitHub , libpcap , withTcl ? true , tcl }:
{ lib , stdenv , fetchFromGitHub , fetchpatch , libpcap , withTcl ? true , tcl }:
stdenv . mkDerivation rec {
pname = " h p i n g " ;
@ -10,6 +10,15 @@ stdenv.mkDerivation rec {
rev = " 3 5 4 7 c 7 6 9 1 7 4 2 c 6 e a a 3 1 f 8 4 0 2 e 0 c c b b 8 1 3 8 7 c 1 b 9 9 " ; # there are no tags/releases
sha256 = " 0 y 0 n 1 y b i j 3 y g 9 l f g z c w f m j z 1 s j g 9 1 3 z c q r v 3 9 1 x x 8 3 d m 0 j 8 0 s d p b " ;
} ;
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchain
# support: https://github.com/antirez/hping/pull/64
( 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 / a n t i r e z / h p i n g / p u l l / 6 4 / c o m m i t s / d 0 5 7 b 9 3 0 9 a e c 3 a 5 a 5 3 a a e e 1 a c 3 4 5 1 a 8 a 5 b 7 1 b 4 e 8 . p a t c h " ;
sha256 = " 0 b q r 7 k d l z i i j j a 5 8 8 i p j 8 g 5 h v 2 1 0 9 w q 0 1 c 6 x 2 q a d b h j f n s p s 1 b 6 l " ;
} )
] ;
buildInputs = [ libpcap ] ++ lib . optional withTcl tcl ;