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
commit 11273b60c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

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

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; };