Author: chaoflow
Date: Tue Jan 3 20:58:57 2012
New Revision: 31253
URL: https://nixos.org/websvn/nix/?rev=31253&sc=1
Log:
load-path also for emacs-22 and emacs-snapshot
Modified:
nixpkgs/trunk/pkgs/applications/editors/emacs-22/default.nix
nixpkgs/trunk/pkgs/applications/editors/emacs-snapshot/default.nix
Modified: nixpkgs/trunk/pkgs/applications/editors/emacs-22/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/editors/emacs-22/default.nix Tue Jan
3 20:58:54 2012 (r31252)
+++ nixpkgs/trunk/pkgs/applications/editors/emacs-22/default.nix Tue Jan
3 20:58:57 2012 (r31253)
@@ -30,6 +30,16 @@
configureFlags =
stdenv.lib.optional gtkGUI "--with-x-toolkit=gtk";
+ postInstall = ''
+ cat >$out/share/emacs/site-lisp/site-start.el <<EOF
+;; nixos specific load-path
+(setq load-path
+ (append (reverse (mapcar (lambda (x) (concat x
"/share/emacs/site-lisp/"))
+ (split-string (getenv "NIX_PROFILES"))))
+ load-path))
+EOF
+ '';
+
meta = {
description = "GNU Emacs, *the* text editor";
Modified: nixpkgs/trunk/pkgs/applications/editors/emacs-snapshot/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/editors/emacs-snapshot/default.nix Tue Jan
3 20:58:54 2012 (r31252)
+++ nixpkgs/trunk/pkgs/applications/editors/emacs-snapshot/default.nix Tue Jan
3 20:58:57 2012 (r31253)
@@ -48,6 +48,16 @@
${if gtkGUI then "--with-x-toolkit=gtk --enable-font-backend --with-xft"
else ""}
";
+ postInstall = ''
+ cat >$out/share/emacs/site-lisp/site-start.el <<EOF
+;; nixos specific load-path
+(setq load-path
+ (append (reverse (mapcar (lambda (x) (concat x
"/share/emacs/site-lisp/"))
+ (split-string (getenv "NIX_PROFILES"))))
+ load-path))
+EOF
+ '';
+
meta = {
description = "GNU Emacs with Unicode, GTK and Xft support (23.x alpha)";
homepage = http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs;
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits