about summary refs log tree commit diff
path: root/pkgs/development/libraries/slib/setup-hook.sh
blob: 3c7e91e81886bcc4810a25b2ac371c9b8ad0125b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
addSlibPath () {
    if test -f "$1/lib/slib/slibcat"
    then
	export SCHEME_LIBRARY_PATH="$1/lib/slib/"
	echo "SLIB found in \`$1'; setting \$SCHEME_LIBRARY_PATH to \`$SCHEME_LIBRARY_PATH'"

	# This is needed so that `(load-from-path "slib/guile.init")' works.
	export GUILE_LOAD_PATH="$1/lib:$GUILE_LOAD_PATH"
	echo "SLIB: setting \$GUILE_LOAD_PATH to \`$GUILE_LOAD_PATH'"
    fi
}

addEnvHooks "$hostOffset" addSlibPath