tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dotnetHook: rename phase functions Hook -> Phase
David McFarland
6 months ago
c8ae12c5
0a734f6b
+10
-10
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
dotnet
build-dotnet-module
hook
dotnet-hook.sh
+10
-10
pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh
···
1
-
dotnetConfigureHook() {
2
echo "Executing dotnetConfigureHook"
3
4
runHook preConfigure
···
74
}
75
76
if [[ -z "${dontDotnetConfigure-}" && -z "${configurePhase-}" ]]; then
77
-
configurePhase=dotnetConfigureHook
78
fi
79
80
-
dotnetBuildHook() {
81
echo "Executing dotnetBuildHook"
82
83
runHook preBuild
···
166
}
167
168
if [[ -z ${dontDotnetBuild-} && -z ${buildPhase-} ]]; then
169
-
buildPhase=dotnetBuildHook
170
fi
171
172
-
dotnetCheckHook() {
173
echo "Executing dotnetCheckHook"
174
175
runHook preCheck
···
248
}
249
250
if [[ -z "${dontDotnetCheck-}" && -z "${checkPhase-}" ]]; then
251
-
checkPhase=dotnetCheckHook
252
fi
253
254
# For compatibility, convert makeWrapperArgs to an array unless we are using
···
316
echo "installed wrapper to "$2""
317
}
318
319
-
dotnetFixupHook() {
320
local -r dotnetInstallPath="${dotnetInstallPath-$out/lib/$pname}"
321
322
local executable executableBasename
···
350
}
351
352
if [[ -z "${dontFixup-}" && -z "${dontDotnetFixup-}" ]]; then
353
-
appendToVar preFixupPhases dotnetFixupHook
354
fi
355
356
-
dotnetInstallHook() {
357
echo "Executing dotnetInstallHook"
358
359
runHook preInstall
···
465
}
466
467
if [[ -z "${dontDotnetInstall-}" && -z "${installPhase-}" ]]; then
468
-
installPhase=dotnetInstallHook
469
fi
···
1
+
dotnetConfigurePhase() {
2
echo "Executing dotnetConfigureHook"
3
4
runHook preConfigure
···
74
}
75
76
if [[ -z "${dontDotnetConfigure-}" && -z "${configurePhase-}" ]]; then
77
+
configurePhase=dotnetConfigurePhase
78
fi
79
80
+
dotnetBuildPhase() {
81
echo "Executing dotnetBuildHook"
82
83
runHook preBuild
···
166
}
167
168
if [[ -z ${dontDotnetBuild-} && -z ${buildPhase-} ]]; then
169
+
buildPhase=dotnetBuildPhase
170
fi
171
172
+
dotnetCheckPhase() {
173
echo "Executing dotnetCheckHook"
174
175
runHook preCheck
···
248
}
249
250
if [[ -z "${dontDotnetCheck-}" && -z "${checkPhase-}" ]]; then
251
+
checkPhase=dotnetCheckPhase
252
fi
253
254
# For compatibility, convert makeWrapperArgs to an array unless we are using
···
316
echo "installed wrapper to "$2""
317
}
318
319
+
dotnetFixupPhase() {
320
local -r dotnetInstallPath="${dotnetInstallPath-$out/lib/$pname}"
321
322
local executable executableBasename
···
350
}
351
352
if [[ -z "${dontFixup-}" && -z "${dontDotnetFixup-}" ]]; then
353
+
appendToVar preFixupPhases dotnetFixupPhase
354
fi
355
356
+
dotnetInstallPhase() {
357
echo "Executing dotnetInstallHook"
358
359
runHook preInstall
···
465
}
466
467
if [[ -z "${dontDotnetInstall-}" && -z "${installPhase-}" ]]; then
468
+
installPhase=dotnetInstallPhase
469
fi