2005-12-22 11:49:43 +01:00
|
|
|
{ xawSupport ? true
|
|
|
|
, xpmSupport ? true
|
|
|
|
, xaw3dSupport ? false
|
|
|
|
, gtkGUI ? false
|
|
|
|
, xftSupport ? false
|
2009-02-17 22:05:52 +01:00
|
|
|
, stdenv, fetchcvs, ncurses, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
2007-10-24 18:21:41 +02:00
|
|
|
, pkgconfig ? null, gtk ? null, libXft ? null
|
2009-02-06 09:43:31 +01:00
|
|
|
, libpng, libjpeg, libungif, libtiff, texinfo
|
2009-02-17 22:05:52 +01:00
|
|
|
, autoconf, automake
|
2005-12-22 11:49:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-02-17 22:05:52 +01:00
|
|
|
let date = "2009-02-16"; in
|
2005-12-22 11:49:43 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-02-06 09:43:31 +01:00
|
|
|
name = "emacs-snapshot-23-${date}";
|
2007-10-24 18:21:41 +02:00
|
|
|
|
2005-12-22 11:49:43 +01:00
|
|
|
builder = ./builder.sh;
|
2007-10-24 18:21:41 +02:00
|
|
|
|
2009-02-17 22:05:52 +01:00
|
|
|
src = fetchcvs {
|
|
|
|
inherit date;
|
|
|
|
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs";
|
|
|
|
module = "emacs";
|
|
|
|
sha256 = "6ec63da94a199c5f95bf4a9aa578cf14b3d85800fd37b3562d9a446b144b0d47";
|
2005-12-22 11:49:43 +01:00
|
|
|
};
|
2007-10-24 18:21:41 +02:00
|
|
|
|
2009-02-17 22:05:52 +01:00
|
|
|
preConfigure = "autoreconf -vfi";
|
2007-10-24 18:21:41 +02:00
|
|
|
|
2005-12-22 11:49:43 +01:00
|
|
|
buildInputs = [
|
2009-02-17 22:05:52 +01:00
|
|
|
autoconf automake
|
2009-02-06 09:43:31 +01:00
|
|
|
ncurses x11 texinfo
|
2005-12-22 11:49:43 +01:00
|
|
|
(if xawSupport then libXaw else null)
|
|
|
|
(if xpmSupport then libXpm else null)
|
|
|
|
(if xaw3dSupport then Xaw3d else null)
|
2007-10-24 18:21:41 +02:00
|
|
|
libpng libjpeg libungif libtiff # maybe not strictly required?
|
2005-12-22 11:49:43 +01:00
|
|
|
]
|
|
|
|
++ (if gtkGUI then [pkgconfig gtk] else [])
|
2007-10-24 18:21:41 +02:00
|
|
|
++ (if xftSupport then [libXft] else []);
|
|
|
|
|
2007-02-05 15:55:15 +01:00
|
|
|
configureFlags = "
|
2009-02-06 09:43:31 +01:00
|
|
|
${if gtkGUI then "--with-x-toolkit=gtk --enable-font-backend --with-xft" else ""}
|
2007-02-05 15:55:15 +01:00
|
|
|
";
|
2007-02-05 15:58:17 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Emacs with Unicode, GTK and Xft support (23.x alpha)";
|
2007-09-11 13:15:37 +02:00
|
|
|
homepage = http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs;
|
2009-02-06 09:43:31 +01:00
|
|
|
license = "GPLv3+";
|
2007-02-05 15:58:17 +01:00
|
|
|
};
|
2005-12-22 11:49:43 +01:00
|
|
|
}
|