anchor.diff:      runHook postCompileBuildDriver
     '';
   
  +  # Cabal takes flags like `--configure-option=--host=...` instead
  +  configurePlatforms = [];
     inherit configureFlags;
   
     configurePhase = ''
  
positive.code:     runHook preSetupCompilerEnvironment
  
      echo "Build with ${ghc}."
      export PATH="${ghc}/bin:$PATH"
      ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
  
      packageConfDir="$TMPDIR/package.conf.d"
  
negative.code:   allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
                          optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
  
    nativeBuildInputs = [ ghc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
                        buildTools ++ libraryToolDepends ++ executableToolDepends;
    propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
    otherBuildInputs = setupHaskellDepends ++ extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
                       optionals (allPkgconfigDepends != []) allPkgconfigDepends ++
  