nixpkgs-suyu/pkgs/development/interpreters/guile/setup-hook.sh
Ludovic Courtès df17eb0dc3 Guile: fix chroot build; make sure guile-snarf' sees gawk'; add a setup hook.
svn path=/nixpkgs/trunk/; revision=10636
2008-02-12 10:41:00 +00:00

8 lines
207 B
Bash

addGuileLibPath () {
if test -d "$1/lib/site-guile"
then
export GUILE_LOAD_PATH="${GUILE_LOAD_PATH}${GUILE_LOAD_PATH:+:}$1/lib/site-guile"
fi
}
envHooks=(${envHooks[@]} addGuileLibPath)