summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Friesdorf <flo@chaoflow.net>2012-01-21 18:28:57 +0000
committerFlorian Friesdorf <flo@chaoflow.net>2012-01-21 18:28:57 +0000
commit0d2d1dd139d89b41bee45b9ffeed640b42f0d14b (patch)
tree580bf54ca837a78ccfd6b9d7b4cea4daf05c6222
parentaa277f7d06b979c85d516b1dc75901f93f8809dd (diff)
downloadnixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar.gz
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar.bz2
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar.lz
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar.xz
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.tar.zst
nixpkgs-0d2d1dd139d89b41bee45b9ffeed640b42f0d14b.zip
emacs-24.0.92
svn path=/nixpkgs/trunk/; revision=31763
-rw-r--r--pkgs/applications/editors/emacs-24/default.nix17
-rw-r--r--pkgs/top-level/all-packages.nix12
2 files changed, 23 insertions, 6 deletions
diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix
index 84a98182e9f..0d10b1db413 100644
--- a/pkgs/applications/editors/emacs-24/default.nix
+++ b/pkgs/applications/editors/emacs-24/default.nix
@@ -1,25 +1,30 @@
 { stdenv, fetchurl, ncurses, x11, libXaw, libXpm, Xaw3d
 , pkgconfig, gtk, libXft, dbus, libpng, libjpeg, libungif
-, libtiff, librsvg, texinfo, gconf
+, libtiff, librsvg, texinfo, gconf, libxml2, imagemagick, gnutls
 }:
 
+# XXX: ?
+# - checking for alsa >= 1.0.0... no
+# - checking for Wand >= 6.2.8... no
+# - imagemagickBig instead of imagemagick?
+
 assert (gtk != null) -> (pkgconfig != null);
 assert (libXft != null) -> libpng != null;	# probably a bug
 assert stdenv.isDarwin -> libXaw != null;	# fails to link otherwise
 
 stdenv.mkDerivation rec {
-  name = "emacs-23.3";
+  name = "emacs-24.0.92";
 
   builder = ./builder.sh;
 
   src = fetchurl {
-    url = "mirror://gnu/emacs/${name}.tar.bz2";
-    sha256 = "0kfa546qi0idkwk29gclgi13qd8q54pcqgy9qwjknlclszprdp3a";
+    url = "http://alpha.gnu.org/gnu/emacs/pretest/${name}.tar.gz";
+    sha256 = "0pwps72zj7mm6asly1vdq46dcj3in4qrkb6ss9xq6nbf039nj4w6";
   };
 
   buildInputs = 
     [ ncurses x11 texinfo libXaw Xaw3d libXpm libpng libjpeg libungif
-      libtiff librsvg libXft gconf
+      libtiff librsvg libXft gconf libxml2 imagemagick gnutls
     ] 
     ++ stdenv.lib.optionals (gtk != null) [ gtk pkgconfig ]
     ++ stdenv.lib.optional stdenv.isLinux dbus;
@@ -44,7 +49,7 @@ EOF
   doCheck = true;
 
   meta = {
-    description = "GNU Emacs 23.x, the extensible, customizable text editor";
+    description = "PRETEST: GNU Emacs 24.x, the extensible, customizable text editor";
 
     longDescription = ''
       GNU Emacs is an extensible, customizable text editor—and more.  At its
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c9385adcd74..d9dd790011c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6635,6 +6635,17 @@ let
     librsvg = null /* if stdenv.isDarwin then null else librsvg */;
   };
 
+  emacs24 = lowPrio (callPackage ../applications/editors/emacs-24 {
+    # use override to select the appropriate gui toolkit
+    libXaw = if stdenv.isDarwin then xlibs.libXaw else null;
+    Xaw3d = null;
+    gtk = if stdenv.isDarwin then null else gtkLibs.gtk;
+    # TODO: these packages don't build on Darwin.
+    # XXX: Do we want gconf by default? What is emacs using it for?
+    gconf = null /* if stdenv.isDarwin then null else gnome.GConf */;
+    librsvg = if stdenv.isDarwin then null else librsvg;
+  });
+
   emacsSnapshot = lowPrio (callPackage ../applications/editors/emacs-snapshot {
     xawSupport = getConfig [ "emacs" "xawSupport" ] false;
     xaw3dSupport = getConfig [ "emacs" "xaw3dSupport" ] false;
@@ -6701,6 +6712,7 @@ let
 
   emacs22Packages = emacsPackages emacs22 pkgs.emacs22Packages;
   emacs23Packages = recurseIntoAttrs (emacsPackages emacs23 pkgs.emacs23Packages);
+  emacs24Packages = recurseIntoAttrs (emacsPackages emacs24 pkgs.emacs24Packages);
 
   epdfview = callPackage ../applications/misc/epdfview { };