2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libviper
|
|
|
|
, libpseudo
|
|
|
|
, gpm
|
|
|
|
, libvterm
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "vwm";
|
|
|
|
version = "2.1.3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/vwm/vwm-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +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-12-06 16:07:01 +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);'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/include
|
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ ncurses glib libviper libpseudo gpm libvterm ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://vwm.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Dynamic window manager for the console";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|