netbsd.terminfo: break libcurses dep cycle with simple decl of use_env

This commit is contained in:
Will Dietz 2018-09-20 22:56:45 -05:00
parent 8517039fb9
commit d08ff06d0a

View File

@ -542,6 +542,8 @@ in rec {
makeFlags = [ "INCSDIR=/include" ];
postPatch = ''
substituteInPlace term.c --replace /usr/share $out/share
substituteInPlace setupterm.c --replace '#include <curses.h>' 'void use_env(bool);'
'';
postInstall = ''
(cd $NETBSDSRCDIR/share/terminfo && make && make BINDIR=/share install)