@@ -394,7 +394,10 @@ let
394 # packages used by the solver (cached-index-state >= index-state-found).
394 # packages used by the solver (cached-index-state >= index-state-found).
395 builtins.trace ("Using index-state: ${index-state-found}" + (if name == null then "" else " for " + name))
395 builtins.trace ("Using index-state: ${index-state-found}" + (if name == null then "" else " for " + name))
396 index-state-found} \
396 index-state-found} \
398+ # We are using `-w` rather than `--with-ghc` here to override
399+ # the `with-compiler:` in the `cabal.project` file.
397− --with-ghc=${ghc.targetPrefix}ghc \
400+ ghc.targetPrefix}ghc \
398 --with-ghc-pkg=${ghc.targetPrefix}ghc-pkg \
401 --with-ghc-pkg=${ghc.targetPrefix}ghc-pkg \
399 --enable-tests \
402 --enable-tests \
400 --enable-benchmarks \
403 --enable-benchmarks \