Skip to content

Commit

Permalink
Add useArchiveFilesForTemplateHaskell option.
Browse files Browse the repository at this point in the history
The motivation is that @aherrmann and @jonathanlking want to use Bazel
and found that it might it easier to use `.a` files in TH than to try
to provide `.so` AND `.a` files of all dependencies.
  • Loading branch information
nh2 committed Jun 11, 2023
1 parent d90f0ec commit c91a9b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions survey/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ in
# When changing this, also change the default version of Cabal declared below
compiler ? "ghc927",

# Tries to use `.a` files when evaluating TH, instead of `.so` files.
useArchiveFilesForTemplateHaskell ? false,

# See:
# * https://www.snoyman.com/base/
# * https://www.haskell.org/cabal/download.html
Expand Down Expand Up @@ -1556,6 +1559,9 @@ let
then ghcPackage # GHC < 9.6, no Hadrian
else ghcPackage.override { enableDwarf = false; }
)
(ghcPackage:
ghcPackage.override { enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; }
)
];

# Overlay all Haskell executables are statically linked.
Expand Down

0 comments on commit c91a9b4

Please sign in to comment.