summary refs log tree commit diff
path: root/pkgs/development/interpreters/guile/setup-hook-2.0.sh
blob: 6bb3910aaff4e67c3a2fd881f80c75089f77da24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
addGuileLibPath () {
    if test -d "$1/share/guile/site/2.0"
    then
        export GUILE_LOAD_PATH="${GUILE_LOAD_PATH-}${GUILE_LOAD_PATH:+:}$1/share/guile/site/2.0"
        export GUILE_LOAD_COMPILED_PATH="${GUILE_LOAD_COMPILED_PATH-}${GUILE_LOAD_COMPILED_PATH:+:}$1/share/guile/site/2.0"
    elif test -d "$1/share/guile/site"
    then
        export GUILE_LOAD_PATH="${GUILE_LOAD_PATH-}${GUILE_LOAD_PATH:+:}$1/share/guile/site"
        export GUILE_LOAD_COMPILED_PATH="${GUILE_LOAD_COMPILED_PATH-}${GUILE_LOAD_COMPILED_PATH:+:}$1/share/guile/site"
    fi
}

addEnvHooks "$hostOffset" addGuileLibPath