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