We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4427a commit 40434a2Copy full SHA for 40434a2
survey/default.nix
@@ -432,6 +432,11 @@ let
432
# directly to GHC.
433
# Tip: If you want to debug this when it's failing, see
434
# 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).
440
preCompileBuildDriver = ''
441
cabalPackageId=$(basename --suffix=.conf ${fixedCabal}/lib/ghc-*/package.conf.d/*.conf)
442
echo "Determined cabalPackageId as $cabalPackageId"
0 commit comments