2011-03-17 20:21:26 +01:00
|
|
|
{ stdenv, fetchurl, libX11, libXext, libXinerama, libXpm, libXft, freetype,
|
|
|
|
fontconfig }:
|
2008-03-25 10:50:54 +01:00
|
|
|
|
2014-05-02 22:42:12 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jwm-2.2.2";
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2008-03-25 10:50:54 +01:00
|
|
|
src = fetchurl {
|
2014-09-11 13:54:00 +02:00
|
|
|
url = "http://www.joewing.net/projects/jwm/releases/${name}.tar.xz";
|
2014-05-02 22:42:12 +02:00
|
|
|
sha256 = "0nhyy78c6imk85d47bakk460x0cfhkyghqq82zghmb00dhwiryln";
|
2008-03-25 10:50:54 +01:00
|
|
|
};
|
|
|
|
|
2011-03-17 20:21:26 +01: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 10:50:54 +01:00
|
|
|
|
2010-07-28 17:35:01 +02: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 10:50:54 +01:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A window manager for X11 that requires only Xlib";
|
2008-03-25 10:50:54 +01:00
|
|
|
};
|
|
|
|
}
|