2005-12-22 13:49:43 +03:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
|
|
|
, gtkGUI ? false
|
|
|
|
, xftSupport ? false
|
2007-02-05 17:55:15 +03:00
|
|
|
, stdenv, fetchurl, ncurses, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
2005-12-22 13:49:43 +03:00
|
|
|
, pkgconfig ? null, gtk ? null, libXft ? null, libpng ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert xawSupport -> libXaw != null;
|
|
|
|
assert xpmSupport -> libXpm != null;
|
|
|
|
assert xaw3dSupport -> Xaw3d != null;
|
|
|
|
assert gtkGUI -> pkgconfig != null && gtk != null;
|
|
|
|
assert xftSupport -> libXft != null && libpng != null; # libpng = probably a bug
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-02-27 00:38:38 +03:00
|
|
|
name = "emacs-23.0.0.1-pre20070214";
|
2005-12-22 13:49:43 +03:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-02-27 00:38:38 +03:00
|
|
|
url = http://losser.st-lab.cs.uu.nl/~eelco/dist/emacs-snapshot_20070214.orig.tar.gz;
|
|
|
|
sha256 = "0nx6i9vw4m5kqhylrf04jnh0hs26hiv98jxqfpk4amh2m976z2rn";
|
2005-12-22 13:49:43 +03:00
|
|
|
};
|
2007-02-05 17:55:15 +03:00
|
|
|
patches = [
|
|
|
|
./crt.patch
|
|
|
|
# From Debian: use --enable-font-backend by default.
|
|
|
|
./xft-default.patch
|
|
|
|
];
|
2005-12-22 13:49:43 +03:00
|
|
|
buildInputs = [
|
2007-02-05 17:55:15 +03:00
|
|
|
ncurses x11
|
2005-12-22 13:49:43 +03:00
|
|
|
(if xawSupport then libXaw else null)
|
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
(if xaw3dSupport then Xaw3d else null)
|
|
|
|
]
|
|
|
|
++ (if gtkGUI then [pkgconfig gtk] else [])
|
|
|
|
++ (if xftSupport then [libXft libpng] else []);
|
2007-02-05 17:55:15 +03:00
|
|
|
configureFlags = "
|
|
|
|
${if gtkGUI then "--with-gtk --enable-font-backend --with-xft" else ""}
|
|
|
|
";
|
2007-02-05 17:58:17 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Emacs with Unicode, GTK and Xft support (23.x alpha)";
|
|
|
|
url = http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs;
|
|
|
|
};
|
2005-12-22 13:49:43 +03:00
|
|
|
}
|