1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/applications/window-managers/vwm/default.nix

33 lines
878 B
Nix
Raw Normal View History

{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 = ''
ensureDir $out/bin $out/include
'';
buildInputs = [ ncurses pkgconfig glib libviper libpseudo gpm libvterm ];
meta = {
homepage = http://vwm.sourceforge.net/;
description = "Dynamic window manager for the console";
license="GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}