diff options
author | Gabriel Arazas <foodogsquared@foodogsquared.one> | 2023-04-23 13:57:48 +0800 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-08-06 16:10:17 +0200 |
commit | 524c7521b054ea7217daf501f6c9062dc52b1dbf (patch) | |
tree | 95ced451240d9cf10a981189959c1cce5cdf5540 /pkgs/development/interpreters/guile/setup-hook-2.2.sh | |
parent | 053e9ef8df89bc113f02c9f51e31efc8f4f9e46f (diff) | |
download | nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar.gz nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar.bz2 nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar.lz nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar.xz nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.tar.zst nixlib-524c7521b054ea7217daf501f6c9062dc52b1dbf.zip |
guile: cleanup setup hook
Diffstat (limited to 'pkgs/development/interpreters/guile/setup-hook-2.2.sh')
-rw-r--r-- | pkgs/development/interpreters/guile/setup-hook-2.2.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/guile/setup-hook-2.2.sh b/pkgs/development/interpreters/guile/setup-hook-2.2.sh index d6bb23e7949a..932a5b6c41e6 100644 --- a/pkgs/development/interpreters/guile/setup-hook-2.2.sh +++ b/pkgs/development/interpreters/guile/setup-hook-2.2.sh @@ -1,18 +1,18 @@ 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" + addToSearchPath GUILE_LOAD_PATH "$1/share/guile/site/2.2" + addToSearchPath 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" + addToSearchPath GUILE_LOAD_PATH "$1/share/guile/site" + addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/share/guile/site" fi if test -d "$1/lib/guile/2.2/ccache"; then - export GUILE_LOAD_COMPILED_PATH="${GUILE_LOAD_COMPILED_PATH-}${GUILE_LOAD_COMPILED_PATH:+:}$1/lib/guile/2.2/ccache" + addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/lib/guile/2.2/ccache" fi if test -d "$1/lib/guile/2.2/site-ccache"; then - export GUILE_LOAD_COMPILED_PATH="${GUILE_LOAD_COMPILED_PATH-}${GUILE_LOAD_COMPILED_PATH:+:}$1/lib/guile/2.2/site-ccache" + addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/lib/guile/2.2/site-ccache" fi } |