Merge pull request #295594 from ShamrockLee/checkpoint-build-dontfixup

checkpointBuildTools.prepareCheckpointBuild: stop at `installPhase`
This commit is contained in:
Connor Baker
2024-04-01 10:45:30 -04:00
committed by GitHub
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -53,7 +53,12 @@ rec {
mkdir -p $out/outputs
cp -r ./* $out/outputs/
runHook postCheckpointInstall
unset postPhases
'';
dontFixup = true;
doInstallCheck = false;
doDist = false;
});
/* Build a derivation based on the checkpoint output generated by
+7
View File
@@ -18,6 +18,13 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
doInstallCheck = true;
# Give hello some install checks for testing purpose.
postInstallCheck = ''
stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}"
'';
passthru.tests = {
version = testers.testVersion { package = hello; };