2011-03-17 22:21:26 +03:00
|
|
|
{ stdenv, fetchurl, libX11, libXext, libXinerama, libXpm, libXft, freetype,
|
|
|
|
fontconfig }:
|
2008-03-25 12:50:54 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-07-28 19:35:01 +04:00
|
|
|
name = "jwm-2.0.1";
|
|
|
|
|
2008-03-25 12:50:54 +03:00
|
|
|
src = fetchurl {
|
2008-08-06 13:50:41 +04:00
|
|
|
url = http://www.joewing.net/programs/jwm/releases/jwm-2.0.1.tar.bz2;
|
2008-03-25 12:50:54 +03:00
|
|
|
sha256 = "1ix5y00cmg3cyazl0adzgv49140zxaf2dpngyg1dyy4ma6ysdmnw";
|
|
|
|
};
|
|
|
|
|
2011-03-17 22:21:26 +03:00
|
|
|
buildInputs = [ libX11 libXext libXinerama libXpm libXft freetype
|
|
|
|
fontconfig ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2 "
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXft -lfreetype -lfontconfig "
|
|
|
|
'';
|
2008-03-25 12:50:54 +03:00
|
|
|
|
2010-07-28 19:35:01 +04:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
sed -i -e s/rxvt/xterm/g $out/etc/system.jwmrc
|
|
|
|
sed -i -e "s/.*Swallow.*\|.*xload.*//" $out/etc/system.jwmrc
|
|
|
|
'';
|
2008-03-25 12:50:54 +03:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "A window manager for X11 that requires only Xlib";
|
2008-03-25 12:50:54 +03:00
|
|
|
};
|
|
|
|
}
|