mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
12 lines
425 B
Bash
12 lines
425 B
Bash
addEmacsVars () {
|
|
if test -d $1/share/emacs/site-lisp; then
|
|
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 "$targetOffset" addEmacsVars
|
|
addEnvHooks "$targetOffset" addEmacsVars
|