depot/pkgs/tools/package-management/akku/setup-hook.sh
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
661 B
Bash
Executable file

_AKKU="SPDX-License-Identifier: MIT"
_AKKU="Copyright (c) The Akku.scm Developers"
scheme_vars='
CHEZSCHEMELIBDIRS
GUILE_LOAD_PATH
IKARUS_LIBRARY_PATH
MOSH_LOADPATH
PLTCOLLECTS
SAGITTARIUS_LOADPATH
VICARE_SOURCE_PATH
YPSILON_SITELIB
LARCENY_LIBPATH
IRONSCHEME_LIBRARY_PATH
LOKO_LIBRARY_PATH
DIGAMMA_SITELIB
CHIBI_MODULE_PATH
GAUCHE_LOAD_PATH
'
addToAkkuEnv () {
adder="addToSearchPath"
for env_var in $scheme_vars; do
$adder $env_var "$1/lib/scheme-libs"
done
$adder GUILE_LOAD_COMPILED_PATH "$1/lib/libobj"
$adder LD_LIBRARY_PATH "$1/lib/ffi"
$adder DYLD_LIBRARY_PATH "$1/lib/ffi"
}
addEnvHooks "$targetOffset" addToAkkuEnv