packaging: actually run install checks

`mesonCheckPhase` of course runs `preCheck` and `postCheck` hooks,
not `preInstallCheck`, so this was not doing the right thing. Really
sorry for breaking CI :(

Fixes: e6da29ad6b
Change-Id: I6a6a69642a242e2c8bfe10ac61d3f6756d666548
This commit is contained in:
Emily
2025-08-01 18:17:47 +01:00
parent f077a6f36e
commit 52872026fb
+10 -4
View File
@@ -444,11 +444,17 @@ stdenv.mkDerivation (finalAttrs: {
"--suite=installcheck"
];
preInstallCheck = ''
mesonCheckFlags=("''${mesonInstallCheckFlags[@]}")
'';
installCheckPhase = ''
runHook preInstallCheck
installCheckPhase = "mesonCheckPhase";
(
unset -v preCheck preCheckHooks postCheck postCheckHooks
mesonCheckFlags=("''${mesonInstallCheckFlags[@]}")
mesonCheckPhase
)
runHook postInstallCheck
'';
separateDebugInfo = !hostPlatform.isStatic && !finalAttrs.dontBuild;