2005-11-12 18:05:51 +01:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
|
|
|
, stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
|
|
|
}:
|
|
|
|
|
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 {
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/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 = [
|
|
|
|
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)
|
|
|
|
];
|
2004-10-06 13:32:20 +02:00
|
|
|
}
|