diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-06-17 20:39:44 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-06-17 20:39:44 +0200 |
commit | 4109b119c20bd6b3aec646a945ea5f32e1146894 (patch) | |
tree | 388d97588be407a43545b89c8e742ee6faca9d64 /pkgs/development/interpreters/tcl | |
parent | 6f910f41f4fcf1f038bbcae221bff9f6c9820b2d (diff) |
tcl: allow passing in extra wrapper args through tclWrapperArgs
Diffstat (limited to 'pkgs/development/interpreters/tcl')
-rw-r--r-- | pkgs/development/interpreters/tcl/tcl-package-hook.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/tcl/tcl-package-hook.sh b/pkgs/development/interpreters/tcl/tcl-package-hook.sh index 747783cb1c27d..41603037931ff 100644 --- a/pkgs/development/interpreters/tcl/tcl-package-hook.sh +++ b/pkgs/development/interpreters/tcl/tcl-package-hook.sh @@ -2,6 +2,8 @@ # * wrap any installed executables with a wrapper that configures TCLLIBPATH # * write a setup hook that extends the TCLLIBPATH of any anti-dependencies +tclWrapperArgs=( ${tclWrapperArgs-} ) + # Add a directory to TCLLIBPATH, provided that it exists _addToTclLibPath() { local tclPkg="$1" @@ -50,10 +52,12 @@ wrapTclBins() { return fi + tclWrapperArgs+=(--prefix TCLLIBPATH ' ' "$TCLLIBPATH") + find "$tclBinsDir" -type f -executable -print | while read -r someBin; do echo "Adding TCLLIBPATH wrapper for $someBin" - wrapProgram "$someBin" --prefix TCLLIBPATH ' ' "$TCLLIBPATH" + wrapProgram "$someBin" "${tclWrapperArgs[@]}" done } |