anchor.diff:  , buildPackages
   , pkgsBuildTarget
   , callPackage
  +, threadsCross ? null # for MinGW
   }:
  +
  +# threadsCross is just for MinGW
  +assert threadsCross != null -> stdenv.targetPlatform.isWindows;
   
   let
     go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
  
positive.code:   # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
    # to be different from CC/CXX
    CC_FOR_TARGET =
      if (stdenv.buildPlatform != stdenv.targetPlatform) then
        "${targetCC}/bin/${targetCC.targetPrefix}cc"
      else
        null;
    CXX_FOR_TARGET =
      if (stdenv.buildPlatform != stdenv.targetPlatform) then
        "${targetCC}/bin/${targetCC.targetPrefix}c++"
      else
        null;
  
negative.code:   propagatedBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ];
  
    depsTargetTargetPropagated = lib.optionals stdenv.isDarwin [ Security Foundation ];
  
    depsBuildTarget = lib.optional isCross targetCC;
  
    depsTargetTarget = lib.optional (threadsCross != null) threadsCross;
  
    hardeningDisable = [ "all" ];
  
  