···66accumulateRoles
7788for var in "${var_templates_list[@]}"; do
99- mangleVarList "$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
99+ mangleVarListGeneric ":" "$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
1010done
11111212export NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@=1
+8-2
pkgs/build-support/wrapper-common/utils.bash
···1313 fi
1414}
15151616-mangleVarList() {
1616+mangleVarListGeneric() {
1717+ local sep="$1"
1818+ shift
1719 local var="$1"
1820 shift
1921 local -a role_suffixes=("$@")
···2527 for suffix in "${role_suffixes[@]}"; do
2628 local inputVar="${var}${suffix}"
2729 if [ -v "$inputVar" ]; then
2828- export ${outputVar}+="${!outputVar:+ }${!inputVar}"
3030+ export ${outputVar}+="${!outputVar:+$sep}${!inputVar}"
2931 fi
3032 done
3333+}
3434+3535+mangleVarList() {
3636+ mangleVarListGeneric " " "$@"
3137}
32383339mangleVarBool() {