Merge pull request #147729 from trofi/fix-vwm-for-ncurses-6.3

This commit is contained in:
Sandro 2021-11-29 20:23:06 +01:00 committed by GitHub
commit f830d70fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,16 @@ stdenv.mkDerivation rec {
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
};
prePatch = ''
postPatch = ''
sed -i -e s@/usr/local@$out@ \
-e s@/usr/lib@$out/lib@ \
-e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
-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 = ''