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;
|
|
|
|
|
2008-09-08 13:10:22 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emacs-22.3";
|
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-09-08 13:10:22 +01:00
|
|
|
url = "mirror://gnu/emacs/${name}.tar.gz";
|
|
|
|
sha256 = "05hd89bchcpwzcx5la0alcp0wb7xywvnf98dxrshrqlfvccvgnbv";
|
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 = {
|
2008-09-08 13:10:22 +01:00
|
|
|
description = "GNU Emacs, *the* text editor";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU Emacs is an extensible, customizable text editor—and more.
|
|
|
|
At its core is an interpreter for Emacs Lisp, a dialect of the
|
|
|
|
Lisp programming language with extensions to support text
|
|
|
|
editing.
|
|
|
|
'';
|
|
|
|
|
2008-06-12 10:21:18 +01:00
|
|
|
homepage = http://www.gnu.org/software/emacs/;
|
2008-09-08 13:10:22 +01:00
|
|
|
license = "GPLv3+";
|
2009-09-17 10:52:11 +01:00
|
|
|
|
2009-09-17 11:26:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux; # GTK & co. are needed.
|
2008-06-12 10:21:18 +01:00
|
|
|
};
|
2005-12-13 00:13:01 +00:00
|
|
|
}
|