treewide: handle preConfigurePhases __structuredAttrs-agnostically

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

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

Changed files
+7 -7
pkgs
build-support
desktops
xfce
core
xfce4-dev-tools
development
compilers
libraries
liquidfun
+1 -1
pkgs/build-support/coq/default.nix
···
})
// (optionalAttrs (args?useMelquiondRemake) rec {
COQUSERCONTRIB = "$out/lib/coq/${coq.coq-version}/user-contrib";
-
preConfigurePhases = "autoconf";
+
preConfigurePhases = [ "autoconf" ];
configureFlags = [ "--libdir=${COQUSERCONTRIB}/${useMelquiondRemake.logpath or ""}" ];
buildPhase = "./remake -j$NIX_BUILD_CORES";
installPhase = "./remake install";
+1 -1
pkgs/build-support/release/source-tarball.nix
···
showBuildStats = true;
-
preConfigurePhases = "autoconfPhase";
+
preConfigurePhases = [ "autoconfPhase" ];
postPhases = "finalPhase";
# Autoconfiscate the sources.
+1 -1
pkgs/build-support/setup-hooks/autoreconf.sh
···
-
preConfigurePhases="${preConfigurePhases:-} autoreconfPhase"
+
appendToVar preConfigurePhases autoreconfPhase
autoreconfPhase() {
runHook preAutoreconf
+1 -1
pkgs/build-support/setup-hooks/update-autotools-gnu-config-scripts.sh
···
-
preConfigurePhases+=" updateAutotoolsGnuConfigScriptsPhase"
+
appendToVar preConfigurePhases updateAutotoolsGnuConfigScriptsPhase
updateAutotoolsGnuConfigScriptsPhase() {
if [ -n "${dontUpdateAutotoolsGnuConfigScripts-}" ]; then return; fi
+1 -1
pkgs/desktops/xfce/core/xfce4-dev-tools/setup-hook.sh
···
}
if [ -z "${dontUseXdtAutogenPhase-}" ]; then
-
preConfigurePhases+=(xdtAutogenPhase)
+
appendToVar preConfigurePhases xdtAutogenPhase
fi
+1 -1
pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh
···
if [[ -z ${dontConfigureNuget-} ]]; then
appendToVar prePhases createNugetDirs
-
preConfigurePhases+=(configureNuget)
+
appendToVar preConfigurePhases configureNuget
fi
+1 -1
pkgs/development/libraries/liquidfun/default.nix
···
sourceRoot = "liquidfun/Box2D";
-
preConfigurePhases = "preConfigure";
+
preConfigurePhases = [ "preConfigure" ];
preConfigure = ''
sed -i Box2D/Common/b2Settings.h -e 's@b2_maxPolygonVertices .*@b2_maxPolygonVertices 15@'