@@ -19,11 +19,16 @@ stdenv.mkDerivation rec {
1919 sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
2020 };
2121
22− prePatch = ''
22+ postPatch = ''
2323 sed -i -e s@/usr/local@$out@ \
2424 -e s@/usr/lib@$out/lib@ \
2525 -e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
2626 -e /ldconfig/d Makefile modules/*/Makefile vwm.h
27+
28+ # Fix ncurses-6.3 support:
29+ substituteInPlace vwm_bkgd.c --replace \
30+ 'mvwprintw(window,height-1,width-(strlen(version_str)),version_str);' \
31+ 'mvwprintw(window,height-1,width-(strlen(version_str)),"%s", version_str);'
2732 '';
2833
2934 preInstall = ''