load-path also for emacs-22 and emacs-snapshot

svn path=/nixpkgs/trunk/; revision=31253
This commit is contained in:
Florian Friesdorf 2012-01-03 20:58:57 +00:00
parent 195ff32a63
commit f051f29fbd
2 changed files with 20 additions and 0 deletions

View File

@ -30,6 +30,16 @@ stdenv.mkDerivation rec {
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";

View File

@ -48,6 +48,16 @@ stdenv.mkDerivation {
${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;