Skip to content

Commit cac3cf7

Browse files
committed
Fix logic for iserv-syms.patch
1 parent d828c0b commit cac3cf7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

overlays/bootstrap.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ in {
215215
# This one will lead to segv's on darwin, when calling `strlen` during lookupStrHashTable. `strlen` ends up being called with 0x0.
216216
# This patch will allow adding additional symbols to iserv, instead of having to patch them into GHC all the time.
217217
++ final.lib.optionals (
218-
final.stdenv.targetPlatform != final.stdenv.hostPlatform
219-
&& (final.stdenv.targetPlatform.isAndroid || final.stdenv.targetPlatform.isLinux)
218+
(final.stdenv.targetPlatform.isAndroid || final.stdenv.targetPlatform.isLinux)
220219
&& (final.stdenv.targetPlatform.isAarch64 || final.stdenv.targetPlatform.is32bit))
221220
(fromUntil "9.6.1" "9.11" ./patches/ghc/iserv-syms.patch)
222221
++ onAndroid (until "9.0" ./patches/ghc/ghc-8.10.7-weak-symbols-2.patch)

0 commit comments

Comments
 (0)