mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
42eeca722c
A trailing separator in emacs load paths has semantics
cc @Ericson2314 @adisbladis https://github.com/NixOS/nixpkgs/pull/73287
This partially reverts commit ca782498a9
14 lines
579 B
Bash
14 lines
579 B
Bash
addEmacsVars () {
|
|
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-}"
|
|
fi
|
|
}
|
|
|
|
# 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 "$hostOffset" addEmacsVars
|
|
addEnvHooks "$targetOffset" addEmacsVars
|