13 stdenv.mkDerivation rec {
18 url = "mirror://sourceforge/vwm/vwm-${version}.tar.gz";
19 sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
23 sed -i -e s@/usr/local@$out@ \
24 -e s@/usr/lib@$out/lib@ \
25 -e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
26 -e /ldconfig/d Makefile modules/*/Makefile vwm.h
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);'
35 mkdir -p $out/bin $out/include
38 nativeBuildInputs = [ pkg-config ];
39 buildInputs = [ ncurses glib libviper libpseudo gpm libvterm ];
42 homepage = "https://vwm.sourceforge.net/";
43 description = "Dynamic window manager for the console";
44 license = licenses.gpl2Plus;
46 platforms = platforms.linux;