anchor.diff:    allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
                           optionals doCheck testPkgconfigDepends ++ optionals withBenchmarkDepends benchmarkPkgconfigDepends;
   
  +  nativeBuildInputs = setupHaskellDepends ++ buildTools ++ libraryToolDepends ++ executableToolDepends;
     propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
  -  otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++ setupHaskellDepends ++
  -                     buildTools ++ libraryToolDepends ++ executableToolDepends ++
  +  otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
                        optionals (allPkgconfigDepends != []) ([pkgconfig] ++ allPkgconfigDepends) ++
                        optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
                        # ghcjs's hsc2hs calls out to the native hsc2hs
  
positive.code: 
    inherit src;
  
    nativeBuildInputs = otherBuildInputs ++ optionals (!hasActiveLibrary) propagatedBuildInputs;
    propagatedNativeBuildInputs = optionals hasActiveLibrary propagatedBuildInputs;
  
    LANG = "en_US.UTF-8";         # GHC needs the locale configured during the Haddock phase.
  
  
negative.code:     setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
      configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
  
      # nativePkgs defined in stdenv/setup.hs
      for p in $nativePkgs; do
        if [ -d "$p/lib/${ghc.name}/package.conf.d" ]; then
          cp -f "$p/lib/${ghc.name}/package.conf.d/"*.conf $packageConfDir/
          continue
  