@ -1,4 +1,4 @@
{ lib , stdenv , fetchFromGitHub , autoreconfHook , pkg-config , directfb , zlib , libjpeg , xorgproto }:
{ lib , stdenv , fetchFromGitHub , fetchpatch , autoreconfHook , pkg-config , directfb , zlib , libjpeg , xorgproto }:
stdenv . mkDerivation {
pname = " d i r e c t v n c " ;
@ -11,6 +11,17 @@ stdenv.mkDerivation {
sha256 = " 1 6 x 7 m r 7 x 7 2 8 q w 7 n b i 6 r q h r w s y 7 3 z s b p i z 8 p b g f z f l 2 a q h f d i z 8 8 b " ;
} ;
patches = [
# Pull fix pending upstream inclusion for -fno-common toolchain
# support:
# https://github.com/drinkmilk/directvnc/pull/7
( 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 / d r i n k m i l k / d i r e c t v n c / c o m m i t / e 9 c 2 3 d 0 4 9 b c f 3 1 d 0 0 9 7 3 4 8 d 4 4 3 9 1 f e 5 f d 9 a a d 1 2 b . p a t c h " ;
sha256 = " 1 d n z r 0 d n x 2 0 w 8 0 r 7 3 j 4 a 9 n 6 m h b a z j z l r 5 p s 9 x j j 8 9 8 9 2 4 c g 1 4 0 z x " ;
} )
] ;
nativeBuildInputs = [ autoreconfHook pkg-config ] ;
buildInputs = [ directfb zlib libjpeg xorgproto ] ;