anchor.diff:          ]
         ];
   
  +      # TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when
  +      # no package has `doCheck = true`.
  +      doCheck' = doCheck && stdenv.hostPlatform == stdenv.buildPlatform;
  +      doInstallCheck' = doInstallCheck && stdenv.hostPlatform == stdenv.buildPlatform;
  +
         outputs' =
           outputs ++
           (if separateDebugInfo then assert stdenv.hostPlatform.isLinux; [ "debug" ] else []);
  
positive.code:         (stdenv.hostPlatform != stdenv.buildPlatform)
          [ "build" "host" ]
  
      # Check phase
      , doCheck ? false
  
      # InstallCheck phase
      , doInstallCheck ? false
  
      , crossConfig ? null
      , meta ? {}
  
negative.code:           __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps;
          } // lib.optionalAttrs (outputs' != [ "out" ]) {
            outputs = outputs';
          } // lib.optionalAttrs doCheck' {
            doCheck = true;
          } // lib.optionalAttrs doInstallCheck' {
            doInstallCheck = true;
          });
  
        validity = import ./check-meta.nix {
  