In Emacs site-start.el check that NIX_PROFILES is set.
In the stdenv this is not set, which causes an elisp error which in turn makes builds depending on Emacs (eg gnuplot) fail. svn path=/nixpkgs/trunk/; revision=31261
This commit is contained in:
parent
0e1ea067ab
commit
ec8e23cc97
@ -33,10 +33,10 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
||||||
;; nixos specific load-path
|
;; nixos specific load-path
|
||||||
(setq load-path
|
(when (getenv "NIX_PROFILES") (setq load-path
|
||||||
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
||||||
(split-string (getenv "NIX_PROFILES"))))
|
(split-string (getenv "NIX_PROFILES"))))
|
||||||
load-path))
|
load-path)))
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -34,10 +34,10 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
||||||
;; nixos specific load-path
|
;; nixos specific load-path
|
||||||
(setq load-path
|
(when (getenv "NIX_PROFILES") (setq load-path
|
||||||
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
||||||
(split-string (getenv "NIX_PROFILES"))))
|
(split-string (getenv "NIX_PROFILES"))))
|
||||||
load-path))
|
load-path)))
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -51,10 +51,10 @@ stdenv.mkDerivation {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
cat >$out/share/emacs/site-lisp/site-start.el <<EOF
|
||||||
;; nixos specific load-path
|
;; nixos specific load-path
|
||||||
(setq load-path
|
(when (getenv "NIX_PROFILES") (setq load-path
|
||||||
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
(append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
|
||||||
(split-string (getenv "NIX_PROFILES"))))
|
(split-string (getenv "NIX_PROFILES"))))
|
||||||
load-path))
|
load-path)))
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user