@@ -271,22 +271,22 @@ in {
271
271
272
272
# This one will lead to segv's on darwin, when calling `strlen` during lookupStrHashTable. `strlen` ends up being called with 0x0.
273
273
# This patch will allow adding additional symbols to iserv, instead of having to patch them into GHC all the time.
274
- ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.10 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) && ( final . stdenv . targetPlatform . isAndroid || final . stdenv . targetPlatform . isLinux ) && ( final . stdenv . targetPlatform . isAarch64 || final . stdenv . targetPlatform . is32bit ) ) ./patches/ghc/iserv-syms.patch
274
+ ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) && ( final . stdenv . targetPlatform . isAndroid || final . stdenv . targetPlatform . isLinux ) && ( final . stdenv . targetPlatform . isAarch64 || final . stdenv . targetPlatform . is32bit ) ) ./patches/ghc/iserv-syms.patch
275
275
# Allow loading static external plugins into cross compilers
276
- ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.10 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) ) ./patches/ghc/5c80a27488acfe3610ddfcb99a1e961002e386d0.patch
277
- ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.10 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) ) ./patches/ghc/f8beb54a1d5725bd0d8a4b0a909d1b41d742b50b.patch
278
- ++ final . lib . optional ( versionAtLeast "8.10" && versionLessThan "9.9 " && ( final . stdenv . targetPlatform . isAndroid && final . stdenv . targetPlatform . is32bit || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-missing-symbols-deadbeef.patch
279
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-linker-pool-allocator.patch
280
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-linker-pool-allocator-2.patch
281
-
282
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.8 " && final . stdenv . targetPlatform . isMusl ) ./patches/ghc/ghc-9.6-0001-Refactor-IServ.hs.patch
283
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl ) ./patches/ghc/ghc-9.6-0002-Drop-spurious-8-byte-offset-from-elf_plt.patch
284
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0003-Better-pool-alignment.-We-still-hardcode-section-ali.patch
285
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0007-fixup-Better-pool-alignment.-We-still-hardcode-secti.patch
286
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.9 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0008-pool-improvements.patch
276
+ ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) ) ./patches/ghc/5c80a27488acfe3610ddfcb99a1e961002e386d0.patch
277
+ ++ final . lib . optional ( versionAtLeast "9.6.1" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform != final . stdenv . hostPlatform ) ) ./patches/ghc/f8beb54a1d5725bd0d8a4b0a909d1b41d742b50b.patch
278
+ ++ final . lib . optional ( versionAtLeast "8.10" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform . isAndroid && final . stdenv . targetPlatform . is32bit || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-missing-symbols-deadbeef.patch
279
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-linker-pool-allocator.patch
280
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-linker-pool-allocator-2.patch
281
+
282
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl ) ./patches/ghc/ghc-9.6-0001-Refactor-IServ.hs.patch
283
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl ) ./patches/ghc/ghc-9.6-0002-Drop-spurious-8-byte-offset-from-elf_plt.patch
284
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0003-Better-pool-alignment.-We-still-hardcode-section-ali.patch
285
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0007-fixup-Better-pool-alignment.-We-still-hardcode-secti.patch
286
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && final . stdenv . targetPlatform . isMusl && final . stdenv . targetPlatform . isAarch64 ) ./patches/ghc/ghc-9.6-0008-pool-improvements.patch
287
287
# these two are abit questionable. They are pretty rough, and assume static binary as well as posix.
288
- # ++ final.lib.optional (versionAtLeast "9.6" && versionLessThan "9.9 " && final.stdenv.targetPlatform.isMusl) ./patches/ghc/ghc-9.6-0004-ghcidladdr.patch
289
- # ++ final.lib.optional (versionAtLeast "9.6" && versionLessThan "9.9 " && final.stdenv.targetPlatform.isMusl) ./patches/ghc/ghc-9.6-0005-Better-interpreter-debugging.-Needs-ghcidladdr.patch
288
+ # ++ final.lib.optional (versionAtLeast "9.6" && versionLessThan "9.11 " && final.stdenv.targetPlatform.isMusl) ./patches/ghc/ghc-9.6-0004-ghcidladdr.patch
289
+ # ++ final.lib.optional (versionAtLeast "9.6" && versionLessThan "9.11 " && final.stdenv.targetPlatform.isMusl) ./patches/ghc/ghc-9.6-0005-Better-interpreter-debugging.-Needs-ghcidladdr.patch
290
290
291
291
# Fix docs/users_guide/rtd-theme/layout.html to work with sphinx 7
292
292
++ fromUntil "9.0" "9.8" ./patches/ghc/docs-sphinx-7.patch
295
295
# These two patches are needed for libblst, which has now hidden symbols, which the linker doesn't know how to deal with.
296
296
++ final . lib . optional ( versionAtLeast "8.10" && versionLessThan "8.11" ) ./patches/ghc/ghc-8.10-0006-Adds-support-for-Hidden-symbols.patch
297
297
++ final . lib . optional ( versionAtLeast "8.10" && versionLessThan "8.11" ) ./patches/ghc/ghc-8.10-0006-Adds-support-for-Hidden-symbols-2.patch
298
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.8 " && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch
299
- ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.8 " && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols-2.patch
298
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch
299
+ ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.11 " && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols-2.patch
300
300
++ fromUntil "9.9" "9.12" ./patches/ghc/ghc-9.9-Cabal-3.11.patch
301
301
++ fromUntil "9.8" "9.9" ./patches/ghc/ghc-9.8-text-upper-bound.patch
302
302
++ fromUntil "9.10" "9.12" ./patches/ghc/ghc-9.10-containers-upper-bound.patch
0 commit comments