2015-02-09 00:29:48 +00:00
|
|
|
addEmacsVars () {
|
2019-11-23 18:41:24 +00:00
|
|
|
if test -d $1/share/emacs/site-lisp; then
|
|
|
|
# it turns out, that the trailing : is actually required
|
|
|
|
# see https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Search.html
|
|
|
|
export EMACSLOADPATH="$1/share/emacs/site-lisp:${EMACSLOADPATH-}"
|
2015-02-09 00:29:48 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-08-10 23:22:07 +01:00
|
|
|
# If this is for a wrapper derivation, emacs and the dependencies are all
|
|
|
|
# run-time dependencies. If this is for precompiling packages into bytecode,
|
|
|
|
# emacs is a compile-time dependency of the package.
|
2019-11-07 23:24:49 +00:00
|
|
|
addEnvHooks "$hostOffset" addEmacsVars
|
2017-08-10 23:22:07 +01:00
|
|
|
addEnvHooks "$targetOffset" addEmacsVars
|