2005-11-12 09:05:51 -08:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
2006-12-08 16:48:15 -08:00
|
|
|
, stdenv, fetchurl, ncurses, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
2005-11-12 09:05:51 -08:00
|
|
|
}:
|
|
|
|
|
2006-01-09 11:37:11 -08:00
|
|
|
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
|
|
|
assert xawSupport && xaw3dSupport -> Xaw3d != null;
|
2005-11-12 09:05:51 -08:00
|
|
|
assert xpmSupport -> libXpm != null;
|
2004-10-06 04:32:20 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-11-17 04:01:19 -08:00
|
|
|
name = "emacs-21.4a";
|
2004-10-06 04:32:20 -07:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-01-30 08:04:03 -08:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/emacs-21.4a.tar.gz;
|
2005-11-12 09:05:51 -08:00
|
|
|
md5 = "8f9d97cbd126121bd5d97e5e31168a87";
|
2004-10-06 04:32:20 -07:00
|
|
|
};
|
2005-11-12 09:05:51 -08:00
|
|
|
patches = [./crt.patch];
|
|
|
|
buildInputs = [
|
2006-12-08 16:48:15 -08:00
|
|
|
ncurses x11
|
2006-01-09 11:37:11 -08:00
|
|
|
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
2005-11-12 09:05:51 -08:00
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
];
|
2006-10-11 09:45:55 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "All Hail Emacs, the ultimate editor";
|
|
|
|
};
|
2004-10-06 04:32:20 -07:00
|
|
|
}
|