typeset -f genericBuild | grep 'phases=' does not list all phases. cmakeConfigurePhase is missing in phases="${prePhases[*]:-} unpackPhase patchPhase ${preConfigurePhases[*]:-} configurePhase ${preBuildPhases[*]:-} buildPhase checkPhase ${preInstallPhases[*]:-} installPhase ${preFixupPhases[*]:-} fixupPhase installCheckPhase ${preDistPhases[*]:-} distPhase ${postPhases[*]:-}"; ... and cmakeConfigurePhase is not in echo ${preConfigurePhases[*]:-} ${preBuildPhases[*]:-}
```
eval ${unpackPhase:-unpackPhase}
cd $sourceRoot
eval ${patchPhase:-patchPhase}
eval ${configurePhase:-configurePhase}
```
this fails for `cmake` builds where we need `cmakeConfigurePhase`
ideally this should be generic, ie something like `for phase in $phases; do eval $phase; done`
for example, where can i see that the build would use
cmakeConfigurePhase
related
typeset -f genericBuild | grep 'phases='
does not list all phases.cmakeConfigurePhase
is missing inphases="${prePhases[*]:-} unpackPhase patchPhase ${preConfigurePhases[*]:-} configurePhase ${preBuildPhases[*]:-} buildPhase checkPhase ${preInstallPhases[*]:-} installPhase ${preFixupPhases[*]:-} fixupPhase installCheckPhase ${preDistPhases[*]:-} distPhase ${postPhases[*]:-}";
... andcmakeConfigurePhase
is not inecho ${preConfigurePhases[*]:-} ${preBuildPhases[*]:-}
https://github.com/NixOS/nixpkgs/pull/216650#discussion_r1109993391