mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
wrapGAppsHook: simplify taking env vars
using indirect variable access must be better than eval
This commit is contained in:
parent
3c1563f49d
commit
c54ba9aec9
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ wrapGAppsHook() {
|
|||
fi
|
||||
|
||||
for v in $wrapPrefixVariables GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do
|
||||
eval local dummy="\$$v"
|
||||
gappsWrapperArgs+=(--prefix $v : "$dummy")
|
||||
gappsWrapperArgs+=(--prefix $v : "${!v}")
|
||||
done
|
||||
|
||||
if [[ -z "$dontWrapGApps" ]]; then
|
||||
|
|
Loading…
Reference in a new issue