imincik
February 18, 2023, 6:41pm
1
I ran nix develop nixpkgs/nixos-22.11#freerdp
to get build environment for freerdp
package.
I can run build phases manually, for example unpackPhase
or cmakeConfigurePhase
.
What I want to do, is to run manually all phases which are used to build the original package it the right order. I was expecting to find something like $phases
variable listing all phases, but I can’t see anything like that. How can I do it ?
Thank you for help.
1 Like
imincik
February 18, 2023, 7:34pm
2
It looks that the only way to get list of phases is to do the same as genericBuild function does.
imincik
February 18, 2023, 7:37pm
3
Actually,
running
nix develop nixpkgs/nixos-22.11#freerdp
if [ -z "${phases[*]:-}" ]; then
phases="${prePhases[*]:-} unpackPhase patchPhase ${preConfigurePhases[*]:-} \
configurePhase ${preBuildPhases[*]:-} buildPhase checkPhase \
${preInstallPhases[*]:-} installPhase ${preFixupPhases[*]:-} fixupPhase installCheckPhase \
${preDistPhases[*]:-} distPhase ${postPhases[*]:-}";
fi
gives me
echo $phases
unpackPhase patchPhase configurePhase buildPhase checkPhase glibPreInstallPhase installPhase glibPreFixupPhase fixupPhase installCheckPhase distPhase
which doesn’t look correct. For example freerdp
is using cmakeConfigurePhase
, not configurePhase
.
imincik
February 18, 2023, 7:52pm
4
I can get list of defined phases functions for my shell by running following command:
declare -F | grep -E ".*Phase"
declare -f buildPhase
declare -f checkPhase
declare -f cmakeConfigurePhase
declare -f cmakePcfileCheckPhase
declare -f configurePhase
declare -f distPhase
declare -f fixupPhase
declare -f glibPreFixupPhase
declare -f glibPreInstallPhase
declare -f installCheckPhase
declare -f installPhase
declare -f patchPhase
declare -f showPhaseFooter
declare -f showPhaseHeader
declare -f unpackPhase
this looks OK, but how do I know when cmakePcfileCheckPhase
is executed ?