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:       derivationArg =
          (removeAttrs attrs
            ["meta" "passthru" "crossAttrs" "pos"
             "__impureHostDeps" "__propagatedImpureHostDeps"
             "sandboxProfile" "propagatedSandboxProfile"])
          // (let
  
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 {
  