mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
5d42a8b38c
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.
16 lines
331 B
Bash
16 lines
331 B
Bash
appendToVar preConfigurePhases autoreconfPhase
|
|
|
|
autoreconfPhase() {
|
|
runHook preAutoreconf
|
|
|
|
local flagsArray=()
|
|
if [[ -v autoreconfFlags ]]; then
|
|
concatTo flagsArray autoreconfFlags
|
|
else
|
|
flagsArray+=(--install --force --verbose)
|
|
fi
|
|
|
|
autoreconf "${flagsArray[@]}"
|
|
runHook postAutoreconf
|
|
}
|