2015-02-09 00:29:48 +00:00
|
|
|
addEmacsVars () {
|
|
|
|
if test -d $1/share/emacs/site-lisp; then
|
|
|
|
export EMACSLOADPATH="$1/share/emacs/site-lisp:$EMACSLOADPATH"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-08-10 22:22:07 +00: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.
|
|
|
|
addEnvHooks "$targetOffset" addEmacsVars
|
|
|
|
addEnvHooks "$targetOffset" addEmacsVars
|