summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-01-09 19:37:11 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-01-09 19:37:11 +0000
commit05f665116a583f1abba48ef3aeb794ce78565e21 (patch)
tree749432a8ae55459b1378f64c381b33fa3da54ece /pkgs/applications/editors/emacs
parent2346c0061bc7f9d111352e40fa2b3dc2f5104ec0 (diff)
downloadnixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar.gz
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar.bz2
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar.lz
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar.xz
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.tar.zst
nixlib-05f665116a583f1abba48ef3aeb794ce78565e21.zip
* Xaw3d: export Xaw header directory and propagate libXmu.
* Emacs: don't depend on libXaw when we're using Xaw3d.
* Enable X11R7.0 over the old XLibs.  Cross fingers :-)

svn path=/nixpkgs/trunk/; revision=4531
Diffstat (limited to 'pkgs/applications/editors/emacs')
-rw-r--r--pkgs/applications/editors/emacs/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/editors/emacs/default.nix b/pkgs/applications/editors/emacs/default.nix
index d0ee37b01ce5..5a11e156e58b 100644
--- a/pkgs/applications/editors/emacs/default.nix
+++ b/pkgs/applications/editors/emacs/default.nix
@@ -4,9 +4,9 @@
 , stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
 }:
 
-assert xawSupport -> libXaw != null;
+assert xawSupport && !xaw3dSupport -> libXaw != null;
+assert xawSupport && xaw3dSupport -> Xaw3d != null;
 assert xpmSupport -> libXpm != null;
-assert xaw3dSupport -> Xaw3d != null;
 
 stdenv.mkDerivation {
   name = "emacs-21.4a";
@@ -18,8 +18,7 @@ stdenv.mkDerivation {
   patches = [./crt.patch];
   buildInputs = [
     x11
-    (if xawSupport then libXaw else null)
+    (if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
     (if xpmSupport then libXpm else null)
-    (if xaw3dSupport then Xaw3d else null)
   ];
 }