2005-12-13 00:13:01 +00: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 14:48:56 +01:00
|
|
|
, ncurses
|
2005-12-13 00:13:01 +00:00
|
|
|
}:
|
|
|
|
|
2006-01-09 19:37:11 +00:00
|
|
|
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
|
|
|
assert xawSupport && xaw3dSupport -> Xaw3d != null;
|
2005-12-13 00:13:01 +00:00
|
|
|
assert xpmSupport -> libXpm != null;
|
|
|
|
assert gtkGUI -> pkgconfig != null && gtk != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-08-20 14:48:56 +01:00
|
|
|
name = "emacs-22.1";
|
2008-02-10 23:08:18 +00:00
|
|
|
|
2005-12-13 00:13:01 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 14:42:00 +01:00
|
|
|
url = mirror://gnu/emacs/emacs-22.1.tar.gz;
|
2007-08-20 14:48:56 +01:00
|
|
|
sha256 = "1l1y3il98pq3cz464p244wz2d3nga5lq8fkw5pwp5r97f7pkpi0y";
|
2005-12-13 00:13:01 +00:00
|
|
|
};
|
2008-02-10 23:08:18 +00:00
|
|
|
patches = [./crt.patch ./makefile-pwd.patch];
|
2005-12-13 00:13:01 +00:00
|
|
|
buildInputs = [
|
2007-08-20 14:48:56 +01:00
|
|
|
ncurses x11
|
2006-01-09 19:37:11 +00:00
|
|
|
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
2005-12-13 00:13:01 +00:00
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
] ++ (if gtkGUI then [pkgconfig gtk] else []);
|
|
|
|
configureFlags =
|
|
|
|
if gtkGUI then ["--with-x-toolkit=gtk"] else [];
|
|
|
|
}
|