Skip to content

Commit 64a2746

Browse files
authored
Fix enableShared logic (#448)
1 parent 54a53c5 commit 64a2746

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

overlays/ghc.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ self: super: with super;
22
# sadly we need to patch GHC a bit.
33
let
44
ghcPkgOverrides = {
5-
enableShared = super.stdenv.targetPlatform == super.stdenv.hostPlatform;
5+
# Required for cross-compilation, otherwise it throws
6+
# Failed to load interface for ‘GHC.Integer.Type’
7+
# Perhaps you haven't installed the "dyn" libraries for package ‘integer-gmp-1.0.2.0’?
8+
enableShared = super.stdenv.buildPlatform == super.stdenv.hostPlatform;
69
enableIntegerSimple = false;
710
} // lib.optionalAttrs self.stdenv.hostPlatform.isAarch32 {
811
enableRelocatableStaticLibs = false;

0 commit comments

Comments
 (0)