Merge pull request #147729 from trofi/fix-vwm-for-ncurses-6.3
This commit is contained in:
commit
f830d70fc2
1 changed files with 6 additions and 1 deletions
|
@ -19,11 +19,16 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
|
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = ''
|
postPatch = ''
|
||||||
sed -i -e s@/usr/local@$out@ \
|
sed -i -e s@/usr/local@$out@ \
|
||||||
-e s@/usr/lib@$out/lib@ \
|
-e s@/usr/lib@$out/lib@ \
|
||||||
-e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
|
-e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
|
||||||
-e /ldconfig/d Makefile modules/*/Makefile vwm.h
|
-e /ldconfig/d Makefile modules/*/Makefile vwm.h
|
||||||
|
|
||||||
|
# Fix ncurses-6.3 support:
|
||||||
|
substituteInPlace vwm_bkgd.c --replace \
|
||||||
|
'mvwprintw(window,height-1,width-(strlen(version_str)),version_str);' \
|
||||||
|
'mvwprintw(window,height-1,width-(strlen(version_str)),"%s", version_str);'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue