Skip to content

Commit 743ee15

Browse files
committed
Add iserv-syms.patch to just windows and musl
1 parent 440fd61 commit 743ee15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

overlays/bootstrap.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ in {
229229

230230
# This one will lead to segv's on darwin, when calling `strlen` during lookupStrHashTable. `strlen` ends up being called with 0x0.
231231
# This patch will allow adding additional symbols to iserv, instead of having to patch them into GHC all the time.
232-
++ fromUntil "9.6.1" "9.11" ./patches/ghc/iserv-syms.patch
232+
++ final.lib.optionals (
233+
final.stdenv.targetPlatform.isWindows || final.stdenv.targetPlatform.isMusl ||
234+
( (final.stdenv.targetPlatform.isAndroid || final.stdenv.targetPlatform.isLinux)
235+
&& (final.stdenv.targetPlatform.isAarch64 || final.stdenv.targetPlatform.is32bit)))
236+
(fromUntil "9.6.1" "9.11" ./patches/ghc/iserv-syms.patch)
233237
++ onAndroid (until "9.0" ./patches/ghc/ghc-8.10.7-weak-symbols-2.patch)
234238
++ onDarwin (onAarch64 (until "9.0" ./patches/ghc/ghc-8.10.7-rts-aarch64-darwin.patch))
235239
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10-android.patch))

0 commit comments

Comments
 (0)