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;
|
|
|
|
|
2008-09-08 14:10:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emacs-22.3";
|
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-09-08 14:10:22 +02:00
|
|
|
url = "mirror://gnu/emacs/${name}.tar.gz";
|
|
|
|
sha256 = "05hd89bchcpwzcx5la0alcp0wb7xywvnf98dxrshrqlfvccvgnbv";
|
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 = {
|
2008-09-08 14:10:22 +02: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 11:21:18 +02:00
|
|
|
homepage = http://www.gnu.org/software/emacs/;
|
2008-09-08 14:10:22 +02:00
|
|
|
license = "GPLv3+";
|
2008-06-12 11:21:18 +02:00
|
|
|
};
|
2005-12-13 01:13:01 +01:00
|
|
|
}
|