anchor.diff:      # For normal components
     + ''
       for p in "''${pkgsHostHost[@]}" "''${pkgsHostTarget[@]}"; do
  -      ${buildPkgDb ghc.name}
  +      ${buildPkgDb ghc.name "$packageConfDir"}
       done
     ''
     # only use the links hack if we're actually building dylibs. otherwise, the
  
positive.code: 
    nativeGhcCommand = "${nativeGhc.targetPrefix}ghc";
  
    buildPkgDb = ghcName: ''
      if [ -d "$p/lib/${ghcName}/package.conf.d" ]; then
        cp -f "$p/lib/${ghcName}/package.conf.d/"*.conf $packageConfDir/
        continue
      fi
      if [ -d "$p/include" ]; then
  
negative.code:     done
  
      echo setupCompileFlags: $setupCompileFlags
      ${nativeGhcCommand} $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
  
      runHook postCompileBuildDriver
    '';
  