2005-11-12 18:05:51 +01:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
|
|
|
, stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert xawSupport -> libXaw != null;
|
|
|
|
assert xpmSupport -> libXpm != null;
|
|
|
|
assert xaw3dSupport -> Xaw3d != null;
|
2004-10-06 13:32:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-11-12 18:05:51 +01:00
|
|
|
name = "emacs-21.4a-Z";
|
2004-10-06 13:32:20 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-11-12 18:05:51 +01:00
|
|
|
url = http://ftp.gnu.org/pub/gnu/emacs/emacs-21.4a.tar.gz;
|
|
|
|
md5 = "8f9d97cbd126121bd5d97e5e31168a87";
|
2004-10-06 13:32:20 +02:00
|
|
|
};
|
2005-11-12 18:05:51 +01:00
|
|
|
patches = [./crt.patch];
|
|
|
|
buildInputs = [
|
|
|
|
x11
|
|
|
|
(if xawSupport then libXaw else null)
|
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
(if xaw3dSupport then Xaw3d else null)
|
|
|
|
];
|
2004-10-06 13:32:20 +02:00
|
|
|
}
|