on iko/ghcjs-patch-master help sign in
Fix enableShared logic (#448)
commit64a27464a7a59901f011971df5716c05aab9bd58 authorAlexander Bantyev <balsoft@balsoft.ru> dateTue 18 Feb 2020, 05:18 (7 years ago) parent54a53c5
1 file changed+4−1
overlays/ghc.nix+4−1
overlays/ghc.nix+4−1
@@ -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;