@ -1,4 +1,4 @@
{ lib , stdenv , fetchurl
{ lib , stdenv , fetchurl , fetchpatch
, autoreconfHook , bison , flex , pkg-config
, bzip2 , check , ncurses , util-linux , zlib
} :
@ -12,6 +12,20 @@ stdenv.mkDerivation rec {
sha256 = " s h a 2 5 6 - g w K x B B G 5 P t G 4 / R x X 4 s U C 2 5 Z e G 8 K 2 u r q V k F D K L 7 N S 4 Z I = " ;
} ;
patches = [
# pull pending upstream inclusion fix for ncurses-6.3: sent upstream over email.
( fetchpatch {
name = " n c u r s e s - 6 . 3 . p a t c h " ;
url = " h t t p s : / / p a g u r e . i o / f o r k / s l y f o x / g f s 2 - u t i l s / c / c 9 2 7 b 6 3 5 f 3 8 0 c c a 7 7 6 6 5 1 9 5 a 3 a a a e 8 0 4 d 9 2 8 7 0 a 4 . p a t c h " ;
sha256 = " s h a 2 5 6 - 0 M 1 x A q R X o U i 2 e l 0 3 W O D F / n q E e 9 J E E 5 G e h M W s 7 7 6 Q Z N I = " ;
} )
] ;
postPatch = ''
# Apply fix for ncurses-6.3. Upstream development branch already reworked the code.
# To be removed on next reelase.
substituteInPlace gfs2/edit/gfs2hex.c - - replace ' printw ( title ) ; ' ' printw ( " % s " , title ) ; '
'' ;
outputs = [ " b i n " " d o c " " o u t " " m a n " ] ;
nativeBuildInputs = [ autoreconfHook bison flex pkg-config ] ;