anchor.diff:        derivationArg =
           (removeAttrs attrs
             ["meta" "passthru" "crossAttrs" "pos"
  +           "doCheck" "doInstallCheck"
              "__impureHostDeps" "__propagatedImpureHostDeps"
              "sandboxProfile" "propagatedSandboxProfile"])
           // (let
  
positive.code:           __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps;
          } // lib.optionalAttrs (outputs' != [ "out" ]) {
            outputs = outputs';
          } // lib.optionalAttrs (attrs ? doCheck) {
            # TODO(@Ericson2314): Make unconditional / resolve #33599
            doCheck = doCheck && (stdenv.hostPlatform == stdenv.buildPlatform);
          } // lib.optionalAttrs (attrs ? doInstallCheck) {
            # TODO(@Ericson2314): Make unconditional / resolve #33599
            doInstallCheck = doInstallCheck && (stdenv.hostPlatform == stdenv.buildPlatform);
          });
  
        validity = import ./check-meta.nix {
  
negative.code:         ]
        ];
  
        # 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 []);
  