Skip to content

Commit 40434a2

Browse files
committed
survey: Add comment
1 parent cb4427a commit 40434a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

survey/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ let
432432
# directly to GHC.
433433
# Tip: If you want to debug this when it's failing, see
434434
# https://github.com/NixOS/nixpkgs/issues/65210#issuecomment-513515829
435+
# A common reason for it to fail is when the wrong `compiler` is given;
436+
# in that case, the build log of the `Cabal` package involved will show
437+
# two different ghc versions, and the output's `lib` directory will also
438+
# contain 2 different ghc versions (one with the `.o` files and one with
439+
# the `.conf` file).
435440
preCompileBuildDriver = ''
436441
cabalPackageId=$(basename --suffix=.conf ${fixedCabal}/lib/ghc-*/package.conf.d/*.conf)
437442
echo "Determined cabalPackageId as $cabalPackageId"

0 commit comments

Comments
 (0)