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 {
|
2008-06-12 10:21:18 +01:00
|
|
|
name = "emacs-22.2";
|
2008-02-10 23:08:18 +00:00
|
|
|
|
2005-12-13 00:13:01 +00:00
|
|
|
builder = ./builder.sh;
|
2008-06-12 10:21:18 +01:00
|
|
|
|
2005-12-13 00:13:01 +00:00
|
|
|
src = fetchurl {
|
2008-06-12 10:21:18 +01:00
|
|
|
url = mirror://gnu/emacs/emacs-22.2.tar.gz;
|
|
|
|
md5 = "d6ee586b8752351334ebf072904c4d51";
|
2005-12-13 00:13:01 +00:00
|
|
|
};
|
2008-06-12 10:21:18 +01: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 00:13:01 +00:00
|
|
|
configureFlags =
|
2008-06-12 10:21:18 +01: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 00:13:01 +00:00
|
|
|
}
|