Unverified Commit 11273b60 authored by Connor Baker's avatar Connor Baker Committed by GitHub
Browse files

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

checkpointBuildTools.prepareCheckpointBuild: stop at `installPhase`
parents e3cb431f 05491696
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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; };