2005-12-13 01:13:01 +01:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
|
|
|
, gtkGUI ? false
|
|
|
|
, stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
|
|
|
, pkgconfig ? null, gtk ? null
|
|
|
|
}:
|
|
|
|
|
2006-01-09 20:37:11 +01:00
|
|
|
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
|
|
|
assert xawSupport && xaw3dSupport -> Xaw3d != null;
|
2005-12-13 01:13:01 +01:00
|
|
|
assert xpmSupport -> libXpm != null;
|
|
|
|
assert gtkGUI -> pkgconfig != null && gtk != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "emacs-22.0.50-pre20051207";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://losser.st-lab.cs.uu.nl/~eelco/dist/emacs-22.0.50.tar.bz2;
|
|
|
|
md5 = "011d40367015691e4319ddc65b4e7843";
|
|
|
|
};
|
|
|
|
patches = [./crt.patch];
|
|
|
|
buildInputs = [
|
|
|
|
x11
|
2006-01-09 20:37:11 +01:00
|
|
|
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
2005-12-13 01:13:01 +01:00
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
] ++ (if gtkGUI then [pkgconfig gtk] else []);
|
|
|
|
configureFlags =
|
|
|
|
if gtkGUI then ["--with-x-toolkit=gtk"] else [];
|
|
|
|
}
|