load-path also for emacs-22 and emacs-snapshot
svn path=/nixpkgs/trunk/; revision=31253
This commit is contained in:
parent
195ff32a63
commit
f051f29fbd
|
@ -30,6 +30,16 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags =
|
configureFlags =
|
||||||
stdenv.lib.optional gtkGUI "--with-x-toolkit=gtk";
|
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 = {
|
meta = {
|
||||||
description = "GNU Emacs, *the* text editor";
|
description = "GNU Emacs, *the* text editor";
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,16 @@ stdenv.mkDerivation {
|
||||||
${if gtkGUI then "--with-x-toolkit=gtk --enable-font-backend --with-xft" else ""}
|
${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 = {
|
meta = {
|
||||||
description = "GNU Emacs with Unicode, GTK and Xft support (23.x alpha)";
|
description = "GNU Emacs with Unicode, GTK and Xft support (23.x alpha)";
|
||||||
homepage = http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs;
|
homepage = http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs;
|
||||||
|
|
Loading…
Reference in New Issue