3
0
Fork 0
forked from mirrors/nixpkgs

emacs: Support building without GTK+

This commit is contained in:
Eelco Dolstra 2013-08-20 16:02:26 +02:00
parent b9fff8a34b
commit 7ac6b10446

View file

@ -26,8 +26,10 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional stdenv.isLinux dbus;
configureFlags =
stdenv.lib.optionals (gtk != null) [ "--with-x-toolkit=gtk" "--with-xft"]
(if gtk != null then
[ "--with-x-toolkit=gtk" "--with-xft"]
else
[ "--with-x-toolkit=no" ])
# On NixOS, help Emacs find `crt*.o'.
++ stdenv.lib.optional (stdenv ? glibc)
[ "--with-crt-dir=${stdenv.glibc}/lib" ];