2021-11-07 13:50:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libviper
|
|
|
|
, libpseudo
|
|
|
|
, gpm
|
|
|
|
, libvterm
|
|
|
|
}:
|
2009-04-22 21:33:24 +00:00
|
|
|
|
2009-11-04 22:38:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "vwm";
|
|
|
|
version = "2.1.3";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2009-04-22 21:33:24 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 13:50:48 +00:00
|
|
|
url = "mirror://sourceforge/vwm/vwm-${version}.tar.gz";
|
2009-11-04 22:38:26 +00:00
|
|
|
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
|
2009-04-22 21:33:24 +00:00
|
|
|
};
|
|
|
|
|
2021-11-28 16:21:39 +00:00
|
|
|
postPatch = ''
|
2009-04-22 21:33:24 +00:00
|
|
|
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
|
2021-11-28 16:21:39 +00:00
|
|
|
|
|
|
|
# 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);'
|
2009-04-22 21:33:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin $out/include
|
2009-04-22 21:33:24 +00:00
|
|
|
'';
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ ncurses glib libviper libpseudo gpm libvterm ];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://vwm.sourceforge.net/";
|
2009-04-22 21:33:24 +00:00
|
|
|
description = "Dynamic window manager for the console";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2009-04-22 21:33:24 +00:00
|
|
|
};
|
|
|
|
}
|