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