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
|
2007-08-20 15:48:56 +02:00
|
|
|
, ncurses
|
2005-12-13 01:13:01 +01:00
|
|
|
}:
|
|
|
|
|
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 {
|
2007-08-20 15:48:56 +02:00
|
|
|
name = "emacs-22.1";
|
2008-02-11 00:08:18 +01:00
|
|
|
|
2005-12-13 01:13:01 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 15:42:00 +02:00
|
|
|
url = mirror://gnu/emacs/emacs-22.1.tar.gz;
|
2007-08-20 15:48:56 +02:00
|
|
|
sha256 = "1l1y3il98pq3cz464p244wz2d3nga5lq8fkw5pwp5r97f7pkpi0y";
|
2005-12-13 01:13:01 +01:00
|
|
|
};
|
2008-02-11 00:08:18 +01:00
|
|
|
patches = [./crt.patch ./makefile-pwd.patch];
|
2005-12-13 01:13:01 +01:00
|
|
|
buildInputs = [
|
2007-08-20 15:48:56 +02:00
|
|
|
ncurses 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 [];
|
|
|
|
}
|