anchor.diff:        inherit erroneousHardeningFlags hardeningDisable hardeningEnable supportedHardeningFlags;
       })
       else let
  +      doCheck = doCheck';
  +      doInstallCheck = doInstallCheck';
  +
         references = nativeBuildInputs ++ buildInputs
                   ++ propagatedNativeBuildInputs ++ propagatedBuildInputs;
   
  
positive.code:             ++ optional (elem "host"   configurePlatforms) "--host=${stdenv.hostPlatform.config}"
              ++ optional (elem "target" configurePlatforms) "--target=${stdenv.targetPlatform.config}";
  
          } // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != []) {
            NIX_HARDENING_ENABLE = enabledHardeningOptions;
          } // lib.optionalAttrs (outputs' != [ "out" ]) {
            outputs = outputs';
          } // lib.optionalAttrs doCheck' {
            doCheck = true;
          } // lib.optionalAttrs doInstallCheck' {
            doInstallCheck = true;
  
          } // lib.optionalAttrs (stdenv.buildPlatform.isDarwin) {
            # TODO: remove lib.unique once nix has a list canonicalization primitive
            __sandboxProfile =
  
negative.code:     , ... } @ attrs:
  
      let
        # 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;
  
        fixedOutputDrv = attrs ? outputHash;
        noNonNativeDeps = builtins.length (depsBuildTarget ++ depsBuildTargetPropagated
                                        ++ depsHostHost ++ depsHostHostPropagated
  