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 {
|
2008-06-12 11:21:18 +02:00
|
|
|
name = "emacs-22.2";
|
2008-02-11 00:08:18 +01:00
|
|
|
|
2005-12-13 01:13:01 +01:00
|
|
|
builder = ./builder.sh;
|
2008-06-12 11:21:18 +02:00
|
|
|
|
2005-12-13 01:13:01 +01:00
|
|
|
src = fetchurl {
|
2008-06-12 11:21:18 +02:00
|
|
|
url = mirror://gnu/emacs/emacs-22.2.tar.gz;
|
|
|
|
md5 = "d6ee586b8752351334ebf072904c4d51";
|
2005-12-13 01:13:01 +01:00
|
|
|
};
|
2008-06-12 11:21:18 +02:00
|
|
|
|
|
|
|
buildInputs = [ncurses x11]
|
|
|
|
++ stdenv.lib.optional xawSupport (if xaw3dSupport then Xaw3d else libXaw)
|
|
|
|
++ stdenv.lib.optional xpmSupport libXpm
|
|
|
|
++ stdenv.lib.optionals gtkGUI [pkgconfig gtk];
|
|
|
|
|
2005-12-13 01:13:01 +01:00
|
|
|
configureFlags =
|
2008-06-12 11:21:18 +02:00
|
|
|
stdenv.lib.optional gtkGUI "--with-x-toolkit=gtk";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Emacs, *the* text editor";
|
|
|
|
homepage = http://www.gnu.org/software/emacs/;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
2005-12-13 01:13:01 +01:00
|
|
|
}
|