lol

treewide: handle preInstallPhases __structuredAttrs-agnostically

Always specify the preInstallPhases attribute as a list instead of a
string.

Append elements to the preInstallPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

+3 -3
+1 -1
pkgs/desktops/gnustep/make/setup-hook.sh
··· 18 18 ) 19 19 } 20 20 21 - preInstallPhases+=" addGnustepInstallFlags" 21 + appendToVar preInstallPhases addGnustepInstallFlags 22 22 23 23 addGNUstepEnvVars() { 24 24 local filename
+1 -1
pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.sh
··· 16 16 17 17 if [ -z "${dontCheckRuntimeDeps-}" ]; then 18 18 echo "Using pythonRuntimeDepsCheckHook" 19 - preInstallPhases+=" pythonRuntimeDepsCheckHook" 19 + appendToVar preInstallPhases pythonRuntimeDepsCheckHook 20 20 fi
+1 -1
pkgs/development/libraries/glib/setup-hook.sh
··· 12 12 glibPreInstallPhase() { 13 13 makeFlagsArray+=("gsettingsschemadir=${!outputLib}/share/gsettings-schemas/$name/glib-2.0/schemas/") 14 14 } 15 - preInstallPhases+=" glibPreInstallPhase" 15 + appendToVar preInstallPhases glibPreInstallPhase 16 16 17 17 glibPreFixupPhase() { 18 18 # Move gschemas in case the install flag didn't help