tree-wide: Correct pre/post phase hooks (#445328)

This commit is contained in:
Bjørn Forsman
2025-09-26 06:02:52 +00:00
committed by GitHub
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
configurePhase = ''
runHook preConfigurePhase
runHook preConfigure
# cargo config
mkdir -p .cargo
@@ -155,7 +155,7 @@ stdenv.mkDerivation (finalAttrs: {
(cd $HOME/.electron-prebuilt-zip-tmp && zip --recurse-paths - .) > $ELECTRON_FORGE_ELECTRON_ZIP_DIR/electron-v$ELECTRON_VERSION_IN_LOCKFILE-${nodePlatform}-${nodeArch}.zip
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
runHook postConfigurePhase
runHook postConfigure
'';
buildPhase = ''
+2 -2
View File
@@ -129,7 +129,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
installPhase = ''
runHook preInstallPhase
runHook preInstall
install -v -m755 -D \
*${stdenv.hostPlatform.extensions.sharedLibrary}* \
@@ -169,7 +169,7 @@ stdenv.mkDerivation (finalAttrs: {
Cflags: -I''${includedir}
EOF
runHook postInstallPhase
runHook postInstall
'';
meta = {
+2 -2
View File
@@ -87,9 +87,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
# versionCheckHook doesn't support multiple arguments yet
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheckPhase
runHook preInstallCheck
$out/bin/rad-tui --version --no-forward | grep -F 'rad-tui ${finalAttrs.version}'
runHook postInstallCheckPhase
runHook postInstallCheck
'';
passthru.updateScript = ./update.sh;
+3 -3
View File
@@ -66,7 +66,7 @@ stdenv.mkDerivation {
tests/zorbajsoniq/download.sh
'';
preBuildPhase = ''
preBuild = ''
mkdir -p import/{flre,synapse,pasdblstrutils} rcmdline internettools
cp -R ${flreSrc}/. import/flre
cp -R ${pasdblstrutilsSrc}/. import/pasdblstrutils
@@ -80,9 +80,9 @@ stdenv.mkDerivation {
'';
buildPhase = ''
runHook preBuildPhase
runHook preBuild
./build.sh
runHook postBuildPhase
runHook postBuild
'';
installPhase = ''