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