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