depot/third_party/nixpkgs/pkgs/applications/window-managers/vwm/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
902 B
Nix

{stdenv, fetchurl, ncurses, pkgconfig, glib, libviper, libpseudo, gpm,
libvterm}:
stdenv.mkDerivation rec {
name = "vwm-2.1.3";
src = fetchurl {
url = "mirror://sourceforge/vwm/${name}.tar.gz";
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
};
prePatch = ''
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
'';
preInstall = ''
mkdir -p $out/bin $out/include
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ncurses glib libviper libpseudo gpm libvterm ];
meta = with stdenv.lib; {
homepage = "http://vwm.sourceforge.net/";
description = "Dynamic window manager for the console";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}