anchor.diff:    # dependencies for the build machine.
     #
     # pkgs* arrays defined in stdenv/setup.hs
  -  + (optionalString useSeparateSetupDb ''
  +  + ''
       for p in "''${pkgsBuildBuild[@]}" "''${pkgsBuildHost[@]}" "''${pkgsBuildTarget[@]}"; do
         ${buildPkgDb nativeGhc.name "$setupPackageConfDir"}
       done
       ${nativeGhcCommand}-pkg --${nativePackageDbFlag}="$setupPackageConfDir" recache
  -  '')
  -
  -    # For normal components
  +  ''
  +  # For normal components
     + ''
       for p in "''${pkgsHostHost[@]}" "''${pkgsHostTarget[@]}"; do
         ${buildPkgDb ghc.name "$packageConfDir"}
  
positive.code:     echo "Build with ${ghc}."
      ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
  
    '' + (optionalString useSeparateSetupDb ''
      setupPackageConfDir="$TMPDIR/setup-package.conf.d"
      mkdir -p $setupPackageConfDir
    '') + ''
      packageConfDir="$TMPDIR/package.conf.d"
      mkdir -p $packageConfDir
  
  
negative.code:     "--configure-option=--host=${hostPlatform.config}"
    ] ++ crossCabalFlags);
  
    setupCompileFlags = [
      (optionalString (!coreSetup) "-${nativePackageDbFlag}=$setupPackageConfDir")
      (optionalString (isGhcjs || isHaLVM || versionOlder "7.8" ghc.version) "-j$NIX_BUILD_CORES")
      # https://github.com/haskell/cabal/issues/2398
      (optionalString (versionOlder "7.10" ghc.version && !isHaLVM) "-threaded")
  