mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
fd78464de9
Adds a configure phase for packages using premake. premakeConfigurePhase runs the correct premake version for the premake you are using (see premake_cmd).
20 lines
400 B
Bash
20 lines
400 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
|