mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
1efcffa700
The previously used pattern was introduced in #318614, but technically leaked the default flags into the global scope. While this would probably not make much of a practical difference, making concatTo support default values is a much cleaner approach.
15 lines
345 B
Bash
15 lines
345 B
Bash
preConfigurePhases="${preConfigurePhases:-} autoreconfPhase"
|
|
|
|
autoreconfPhase() {
|
|
runHook preAutoreconf
|
|
|
|
local flagsArray=()
|
|
if [[ -v autoreconfFlags ]]; then
|
|
concatTo flagsArray autoreconfFlags
|
|
else
|
|
flagsArray+=(--install --force --verbose)
|
|
fi
|
|
|
|
autoreconf "${flagsArray[@]}"
|
|
runHook postAutoreconf
|
|
}
|