mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
20 lines
403 B
Bash
20 lines
403 B
Bash
premakeConfigurePhase() {
|
|
runHook preConfigure
|
|
|
|
local flagsArray=(
|
|
${premakefile:+--file=$premakefile}
|
|
$premakeFlags ${premakeFlagsArray[@]}
|
|
${premakeBackend:-gmake}
|
|
)
|
|
|
|
echoCmd 'configure flags' "${flagsArray[@]}"
|
|
|
|
@premake_cmd@ "${flagsArray[@]}"
|
|
|
|
runHook postConfigure
|
|
}
|
|
|
|
if [ -z "${configurePhase-}" ]; then
|
|
configurePhase=premakeConfigurePhase
|
|
fi
|