-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathbootstrap.nix
1223 lines (1070 loc) · 73.9 KB
/
bootstrap.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
final: prev:
let
buildBootstrapper.compilerNixName =
if final.buildPackages.haskell.compiler ? ghc964 then "ghc964"
else "ghc8107";
latestVerMap = {
"8.10" = "8.10.7";
"9.0" = "9.0.2";
"9.2" = "9.2.8";
"9.4" = "9.4.8";
"9.6" = "9.6.6";
"9.8" = "9.8.4";
"9.10" = "9.10.1";
"9.12" = "9.12.2";
};
gitInputs = {
ghc96X = "9.6.7";
ghc912X = "9.12.1";
ghc913 = "9.13";
};
versionToNixName = v: "ghc${builtins.replaceStrings ["."] [""] v}";
compilerNameMap =
builtins.mapAttrs (source-name: v:
versionToNixName "${v}.${builtins.substring 0 8 final.haskell-nix.sources.${source-name}.lastModifiedDate}")
gitInputs //
builtins.listToAttrs (map (v:
{ name = versionToNixName v; value = versionToNixName latestVerMap.${v}; })
(builtins.attrNames latestVerMap));
traceWarnOld = v: x:
let
bootstrapGhc = final.buildPackages.haskell.compiler.ghc8107;
in
if builtins.compareVersions x.version bootstrapGhc.version < 0 then
throw "Desired GHC (${x.version}) is older than the bootstrap GHC (${bootstrapGhc.version}) for this platform (${final.stdenv.targetPlatform.config})."
else x // final.lib.optionalAttrs (x.version != latestVerMap.${v}) { latestVersion = latestVerMap.${v}; };
errorOldGhcjs = v: up: throw "ghcjs ${v} is no longer supported by haskell.nix. Consider using ${latestVerMap.${up}}";
in {
haskell-nix = prev.haskell-nix // {
# This can be used to map a compiler-nix-name from a shorter form.
# For instance it will map:
# "ghc810" -> "ghc8107"
# "ghc99" -> "ghc9920230909" (uses last modified date of the git repo)
inherit compilerNameMap;
resolve-compiler-name = name: final.haskell-nix.compilerNameMap.${name} or name;
# Use this to disable the existing haskell infra structure for testing purposes
compiler =
let bootPkgs = {
ghc = final.buildPackages.buildPackages.haskell-nix.bootstrap.compiler."${buildBootstrapper.compilerNixName}";
inherit (final.haskell-nix.bootstrap.packages) alex happy hscolour;
};
# ghc 9.0.2 is no longer cached for nixpkgs-unstable and it seems to be broken
nixpkgsBootCompiler =
if final.buildPackages.haskell.compiler ? ghc964 then "ghc964"
else "ghc902";
bootPkgsGhc94 = bootPkgs // {
alex = final.buildPackages.haskell-nix.tool nixpkgsBootCompiler "alex" {
compilerSelection = p: p.haskell.compiler;
version = "3.2.7.1";
index-state = final.haskell-nix.internalHackageIndexState;
materialized = ../materialized/alex-3.2.7.1/${nixpkgsBootCompiler};
};
happy = final.buildPackages.haskell-nix.tool nixpkgsBootCompiler "happy" {
compilerSelection = p: p.haskell.compiler;
version = "1.20.0";
index-state = final.haskell-nix.internalHackageIndexState;
materialized = ../materialized/happy-1.20.0/${nixpkgsBootCompiler};
};
};
sphinx = final.buildPackages.sphinx;
ghc-patches = version: let
# Returns true iff this derivation's version is strictly older than ver.
versionLessThan = ver: builtins.compareVersions ver version == 1;
# Returns true iff this derivation's version is greater than or equal to ver.
versionAtLeast = ver: !versionLessThan ver;
fromUntil = start: end: final.lib.optional (versionAtLeast start && versionLessThan end);
from = start: final.lib.optional (versionAtLeast start);
until = end: final.lib.optional (versionLessThan end);
always = final.lib.optional true;
onDarwin = final.lib.optionals final.stdenv.targetPlatform.isDarwin;
onMusl = final.lib.optionals final.stdenv.targetPlatform.isMusl;
onWindows = final.lib.optionals final.stdenv.targetPlatform.isWindows;
onWindowsOrMusl = final.lib.optionals (final.stdenv.targetPlatform.isWindows || final.stdenv.targetPlatform.isMusl);
onAarch32 = final.lib.optionals final.stdenv.targetPlatform.isAarch32;
onAarch64 = final.lib.optionals final.stdenv.targetPlatform.isAarch64;
onAarch64Musl = final.lib.optionals (final.stdenv.targetPlatform.isAarch64 && final.stdenv.targetPlatform.isMusl);
onAndroid = final.lib.optionals final.stdenv.targetPlatform.isAndroid;
onNative = final.lib.optionals (final.stdenv.buildPlatform == final.stdenv.targetPlatform);
onCross = final.lib.optionals (final.stdenv.targetPlatform != final.stdenv.hostPlatform);
onGhcjs = final.lib.optionals final.stdenv.targetPlatform.isGhcjs;
on32bit = final.lib.optionals final.stdenv.targetPlatform.is32bit;
# Try to avoid reordering the patches unless a patch is added or changed that
# will be applied to most versions of the GHC anyway (reordering the patches
# results in rebuilds of GHC and reduces sharing in /nix/store).
in until "9.11" ./patches/ghc/dll-loader-8.4.2.patch # https://gitlab.haskell.org/ghc/ghc/merge_requests/949 -- open
++ until "9.2" ./patches/ghc/ghc-8.4.3-Cabal2201-no-hackage-tests.patch # ?
++ until "9.2" ./patches/ghc/cabal-host.patch # https://github.com/haskell/cabal/issues/5887
++ fromUntil "9.2" "9.4" ./patches/ghc/ghc-9.2-cabal-host.patch # https://github.com/haskell/cabal/issues/5887
++ until "9.0" ./patches/ghc/respect-ar-path.patch
++ onDarwin (until "9.0" ./patches/ghc/ghc-macOS-loadArchive-fix.patch)
++ onDarwin (fromUntil "9.0.0" "9.2" ./patches/ghc/ghc-9.0-macOS-loadArchive-fix.patch)
++ onDarwin (fromUntil "9.2.0" "9.4" ./patches/ghc/ghc-9.2-macOS-loadArchive-fix.patch)
++ onDarwin (until "9.0.2" ./patches/ghc/ghc-8.10-darwin-gcc-version-fix.patch)
# See https://github.com/input-output-hk/haskell.nix/issues/1027
++ onAarch32 (until "9.2" ./patches/ghc/ghc-8.10-3434-armv7a.patch)
++ onAarch64 (until "9.2" ./patches/ghc/ghc-8.10-3434.patch)
++ until "9.4" ./patches/ghc/ghc-acrt-iob-func.patch
++ until "9.2" ./patches/ghc/ghc-mprotect-nonzero-len.patch
++ fromUntil "9.2" "9.2.8" ./patches/ghc/ghc-9.2-fix-m32_allocator_init-10453.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10453
++ fromUntil "9.2" "9.2.8" ./patches/ghc/ghc-9.2-fix-m32_allocator_init-10453-2.patch
++ fromUntil "9.2" "9.4" ./patches/ghc/ghc-9.2-bignum-expose-backendName.patch # https://gitlab.haskell.org/ghc/ghc/-/commit/bc498fdfa482dfe796e3a12ac8f9d71913930740
++ until "9.0" ./patches/ghc/ghc-8.10.5-ubxt.patch
++ final.lib.optionals (!final.stdenv.targetPlatform.isDarwin)
( until "9.2" ./patches/ghc/Cabal-3886.patch
++ fromUntil "9.2" "9.4" ./patches/ghc/ghc-9.2-Cabal-3886.patch)
++ onWindows (until "9.4" ./patches/ghc/ghc-8.10-z-drive-fix.patch)
++ until "9.4" ./patches/ghc/ghc-8.10-windows-add-dependent-file.patch
++ until "9.0" ./patches/ghc/Cabal-unbreak-GHCJS.patch
++ fromUntil "9.0.1" "9.0.2" ./patches/ghc/AC_PROG_CC_99.patch
++ fromUntil "9.0.2" "9.2.2" ./patches/ghc/ghc-9.2.1-xattr-fix.patch # Problem was backported to 9.0.2
++ until "9.4" ./patches/ghc/MR6654-nonmoving-maxmem.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6654
++ until "9.0.2" ./patches/ghc/MR6617-nonmoving-mvar.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6617
++ until "9.0.2" ./patches/ghc/MR6595-nonmoving-mutvar.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6595
++ until "9.2" ./patches/ghc/ghc-8.10-global-unique-counters-in-rts.patch # backport of https://gitlab.haskell.org/ghc/ghc/-/commit/9a28680d2e23e7b25dd7254a439aea31dfae32d5
++ fromUntil "9.2" "9.4" ./patches/ghc/ghc-9.2-global-unique-counters-in-rts.patch # backport of https://gitlab.haskell.org/ghc/ghc/-/commit/9a28680d2e23e7b25dd7254a439aea31dfae32d5
++ until "9.2" ./patches/ghc/issue-18708.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6554
++ fromUntil "9.2.2" "9.4" ./patches/ghc/ghc-9.2.2-fix-warnings-building-with-self.patch # https://gitlab.haskell.org/ghc/ghc/-/commit/c41c478eb9003eaa9fc8081a0039652448124f5d
++ until "9.6" ./patches/ghc/ghc-hpc-response-files.patch # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/8194
++ fromUntil "9.2" "9.14" ./patches/ghc/sanity-check-find-file-name.patch
++ until "9.0" ./patches/ghc/dont-mark-evacuate_large-as-inline.patch
++ onWindows (fromUntil "9.4.1" "9.4.5" ./patches/ghc/ghc-9.4-hadrian-win-cross.patch)
++ onWindows (fromUntil "9.4.7" "9.4.9" ./patches/ghc/ghc-9.8-hadrian-win-cross.patch)
++ onWindows (fromUntil "9.6.3" "9.11" ./patches/ghc/ghc-9.8-hadrian-win-cross.patch)
# support R_X86_64_PC64 (ELF constant 24) - IMAGE_REL_AMD64_SREL32 (PE constant 14), which seems to appear with 9.6 more frequently, and
# results in "unhandled PEi386 relocation type 14".
++ onWindows (fromUntil "9.4.1" "9.6.7" ./patches/ghc/win-reloc-x86_64-pc64.patch)
++ onWindows (fromUntil "9.8.1" "9.8.3" ./patches/ghc/win-reloc-x86_64-pc64.patch)
++ onWindows (fromUntil "9.10" "9.11" ./patches/ghc/win-reloc-x86_64-pc64.patch)
# ++ onWindows (fromUntil "9.4.1" "9.10" ./patches/ghc/Win32-depends-on-mingwex.patch)
# if the host system provides ucrt (e.g. wine with ucrtbase.dll), we may end up linking against symbols from ucrtbase, instead of msvcrt,
# thus leading to broken code. E.g. the handles we create and hand to wine will all be busted, because they come from one and are processed
# by another crt.
++ final.lib.optionals (final.stdenv.targetPlatform.libc != "ucrt") (
onWindows (until "9.8" ./patches/ghc/win-linker-no-ucrt.patch)
# Nixos/nixpkgs is mscvrt for now, thus we must disable ucrt in ghc, otherwise we end up with broken linking.
++ onWindows (fromUntil "9.4.1" "9.6" ./patches/ghc/no-ucrt-9.4.patch)
++ onWindows (fromUntil "9.6.1" "9.6.3" ./patches/ghc/no-ucrt-9.6.patch)
++ onWindows (fromUntil "9.6.3" "9.8" ./patches/ghc/no-ucrt-9.6.3.patch)
++ onWindows (fromUntil "9.8" "9.9" ./patches/ghc/no-ucrt-9.8.patch)
++ onWindows (fromUntil "9.9" "9.9.20231203" ./patches/ghc/no-ucrt-9.9.patch)
)
++ onWindows (fromUntil "9.4.7" "9.5" ./patches/ghc/revert-289547580b6f2808ee123f106c3118b716486d5b.patch)
++ onWindows (fromUntil "9.6.3" "9.11" ./patches/ghc/revert-289547580b6f2808ee123f106c3118b716486d5b.patch)
# the following is needed for cardano-prelude as it uses closure_sizeW :-/
++ onWindows (fromUntil "9.4" "9.11" ./patches/ghc/win-add-closure_sizeW-to-rtssyms.patch)
++ onWindows (until "9.0" ./patches/ghc/ghc-8.10-win-add-tzset-to-rtssyms.patch)
++ onWindows (fromUntil "9.0" "9.3" ./patches/ghc/ghc-9.2-win-add-tzset-to-rtssyms.patch)
++ onWindows (fromUntil "9.4" "9.11" ./patches/ghc/win-add-tzset-to-rtssyms.patch)
++ onWindows (fromUntil "9.4.1" "9.4.7" ./patches/ghc/win-linker-no-null-deref.patch)
++ onWindows (fromUntil "9.4.7" "9.4.8" ./patches/ghc/win-linker-no-null-deref-9.6.patch)
++ onWindows (fromUntil "9.4.1" "9.6" ./patches/ghc/ghc-9.4-drop-mingwex-from-base.patch)
++ onWindows (fromUntil "9.6.1" "9.6.3" ./patches/ghc/win-linker-no-null-deref.patch)
++ onWindows (fromUntil "9.6.3" "9.6.4" ./patches/ghc/win-linker-no-null-deref-9.6.patch)
++ onWindows (fromUntil "9.8.1" "9.8.2" ./patches/ghc/win-linker-no-null-deref-9.6.patch)
++ onWindows (until "9.0" ./patches/ghc/ghc-8.10-windres-invocation.patch)
++ onWindows (fromUntil "9.0" "9.4" ./patches/ghc/ghc-9.0-windres-invocation.patch)
++ onWindows (from "9.12" ./patches/ghc/ghc-9.12-windows-rts-symbols.patch)
++ fromUntil "9.4.5" "9.4.9" ./patches/ghc/ghc-9.4.5-include-order-fix.patch
++ fromUntil "9.6.2" "9.6.7" ./patches/ghc/ghc-9.4.5-include-order-fix.patch
++ fromUntil "9.6.1" "9.6.7" ./patches/ghc/MR10116.patch
++ fromUntil "9.8.1" "9.9.20231203" ./patches/ghc/MR10116.patch
++ onNative (fromUntil "9.4.1" "9.6" ./patches/ghc/hadrian-build-deriveConstants-genprimopcode-ghc94.patch)
++ onNative (fromUntil "9.6.1" "9.14" ./patches/ghc/hadrian-build-deriveConstants-genprimopcode.patch)
++ onGhcjs (fromUntil "9.6.1" "9.6.3" ./patches/ghc/ghc-9.6-Merge-libiserv-with-ghci.patch)
++ onGhcjs (fromUntil "9.6.3" "9.8" ./patches/ghc/ghc-9.6.3-Merge-libiserv-with-ghci.patch)
++ onGhcjs (fromUntil "9.6.1" "9.8" ./patches/ghc/ghc-9.6-Assorted-changes-to-avoid-head-tail.patch)
++ onGhcjs (fromUntil "9.6.1" "9.6.3" ./patches/ghc/ghc-9.6-JS-implement-TH-support.patch)
++ onGhcjs (fromUntil "9.6.3" "9.6.7" ./patches/ghc/ghc-9.6.3-JS-implement-TH-support.patch)
++ onGhcjs (fromUntil "9.6.7" "9.8" ./patches/ghc/ghc-9.6.7-JS-implement-TH-support.patch)
++ fromUntil "9.8.1" "9.8.2" ./patches/ghc/ghc-9.8-cabal-c-soures-fix.patch
++ fromUntil "9.6.3" "9.6.5" ./patches/ghc/ghc-9.6.3-Cabal-9384.patch
++ fromUntil "9.8.1" "9.8.3" ./patches/ghc/ghc-9.6.3-Cabal-9384.patch
# the following is a partial reversal of https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4391, to address haskell.nix#1227
++ onAarch64 (until "9.0" ./patches/ghc/mmap-next.patch)
++ onAarch64 (until "9.0" ./patches/ghc/m32_alloc.patch)
++ onAndroid (until "9.0" ./patches/ghc/rts-android-jemalloc-qemu.patch)
++ onAndroid (until "9.0" ./patches/ghc/stack-protector-symbols.patch)
++ onAndroid (until "9.0" ./patches/ghc/libraries-prim-os-android.patch)
++ onAndroid (until "9.0" ./patches/ghc/ghc-rts-linker-condbr.patch)
# due to mmap-next renaming we need different ones for aarch64 and aarch32 m(
++ onAndroid (onAarch32 (until "9.0" ./patches/ghc/ghc-8.10.7-linker-weak-and-common-armv7a.patch))
++ onAndroid (onAarch64 (until "9.0" ./patches/ghc/ghc-8.10.7-linker-weak-and-common.patch))
++ onAndroid (onAarch32 (until "9.0" ./patches/ghc/libc-memory-symbols-armv7a.patch))
++ onAndroid (onAarch64 (until "9.0" ./patches/ghc/libc-memory-symbols.patch))
++ onAndroid (until "9.0" ./patches/ghc/android-base-needs-iconv.patch)
++ onCross (until "9.4" ./patches/ghc/ghc-make-stage-1-lib-ghc.patch)
++ onAarch64 (until "9.0" ./patches/ghc/ghc-8.10-better-symbol-addr-debug.patch)
++ onAarch64 (until "9.0" ./patches/ghc/ghc-8.10-aarch64-handle-none-rela.patch)
++ onWindows (until "9.0" ./patches/ghc/5b08e0c06e038448a63aa9bd7f163b23d824ba4b.patch)
++ onAarch64 (fromUntil "9.0" "9.11" ./patches/ghc/ghc-9.0-better-symbol-addr-debug.patch)
++ onAarch64 (fromUntil "9.0" "9.6.7" ./patches/ghc/ghc-9.0-aarch64-handle-none-rela.patch)
++ onAarch64 (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.0-aarch64-handle-none-rela.patch)
++ onAarch64 (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.0-aarch64-handle-none-rela.patch)
++ onWindows (fromUntil "9.6.3" "9.6.4" ./patches/ghc/ghc-9.6-hadrian-splitsections.patch)
++ onWindows (fromUntil "9.8.1" "9.8.2" ./patches/ghc/ghc-9.6-hadrian-splitsections.patch)
# this patch was backported to 9.4.8 and 9.6.4
++ onWindows (fromUntil "9.4" "9.4.8" ./patches/ghc/ghc-9.6-fix-code-symbol-jumps.patch)
# we also want to apply this to musl, so that the ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch applies.
++ onWindowsOrMusl (fromUntil "9.6" "9.6.4" ./patches/ghc/ghc-9.6-fix-code-symbol-jumps.patch)
++ onWindows (fromUntil "9.8" "9.8.2" ./patches/ghc/ghc-9.6-fix-code-symbol-jumps.patch)
# this one is to allow linking extra symbols from iserv.
# ++ fromUntil "9.6.1" "9.10" ./patches/ghc/iserv-syms.patch
++ on32bit (fromUntil "9.6" "9.6.5" ./patches/ghc/ghc-9.6-genapply-cross-arch.patch)
# Fix the bad fixups: https://gitlab.haskell.org/ghc/ghc/-/commit/2adc050857a9c1b992040fbfd55fbe65b2851b19
++ onAarch64 (fromUntil "9.6" "9.6.4" ./patches/ghc/2adc050857a9c1b992040fbfd55fbe65b2851b19.patch)
++ final.lib.optionals (
final.stdenv.targetPlatform.isAarch64
&& final.stdenv.targetPlatform.isMusl
&& final.stdenv.targetPlatform != final.stdenv.hostPlatform)
(until "9.0" ./patches/ghc/ghc-8.10-aarch64-musl-gettimeofday.patch)
# This one will lead to segv's on darwin, when calling `strlen` during lookupStrHashTable. `strlen` ends up being called with 0x0.
# This patch will allow adding additional symbols to iserv, instead of having to patch them into GHC all the time.
++ final.lib.optionals (
(final.stdenv.targetPlatform.isAndroid || final.stdenv.targetPlatform.isLinux)
&& (final.stdenv.targetPlatform.isAarch64 || final.stdenv.targetPlatform.is32bit))
(fromUntil "9.6.1" "9.11" ./patches/ghc/iserv-syms.patch)
++ onAndroid (until "9.0" ./patches/ghc/ghc-8.10.7-weak-symbols-2.patch)
++ onDarwin (onAarch64 (until "9.0" ./patches/ghc/ghc-8.10.7-rts-aarch64-darwin.patch))
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10-android.patch))
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10.7-android-bionic-symbols.patch))
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10.7-bionic-libc.patch))
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10.7-cross-dont-build-stage2-tools.patch))
++ onAndroid (fromUntil "9.0" "9.10" ./patches/ghc/ghc-9.6-hadrian-android.patch)
++ onAndroid (from "9.10" ./patches/ghc/ghc-9.10-hadrian-android.patch)
++ onAndroid (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.10-relax-llvm-max-version.patch)
++ onAndroid (from "9.12" ./patches/ghc/ghc-define-undefined-elf-st-visibility.patch)
++ onMusl (onAarch64 (fromUntil "9.4" "9.8" ./patches/ghc/ghc-9.6-hadrian-strip-cmd.patch))
++ onMusl (onAarch64 (fromUntil "9.8" "9.10" ./patches/ghc/ghc-9.8-hadrian-strip-cmd.patch))
++ onMusl (onAarch64 (fromUntil "9.10" "9.12" ./patches/ghc/ghc-9.10-hadrian-strip-cmd.patch))
++ on32bit (fromUntil "9.0" "9.4.8" ./patches/ghc/ghc-9.6-32bit-cmm.patch)
++ on32bit (fromUntil "9.6" "9.6.4" ./patches/ghc/ghc-9.6-32bit-cmm.patch)
++ onAndroid (fromUntil "9.6.3" "9.8.3" ./patches/ghc/ghc-9.6-iog.patch)
++ onAndroid (fromUntil "9.8.3" "9.10" ./patches/ghc/ghc-9.8.3-iog.patch)
++ onAndroid (fromUntil "9.6" "9.9" ./patches/ghc/ghc-9.6-debug-secno.patch)
++ onAndroid (from "9.8.1" ./patches/ghc/ghc-9.8-android-convert-os.patch)
# Allow loading static external plugins into cross compilers
++ onCross (fromUntil "9.6.1" "9.11" ./patches/ghc/5c80a27488acfe3610ddfcb99a1e961002e386d0.patch)
++ onCross (fromUntil "9.6.1" "9.8.3" ./patches/ghc/f8beb54a1d5725bd0d8a4b0a909d1b41d742b50b.patch)
++ onCross (fromUntil "9.8.3" "9.10" ./patches/ghc/ghc-9.8.3-f8beb54a1d5725bd0d8a4b0a909d1b41d742b50b.patch)
++ onCross (fromUntil "9.10" "9.11" ./patches/ghc/f8beb54a1d5725bd0d8a4b0a909d1b41d742b50b.patch)
++ final.lib.optionals (
final.stdenv.targetPlatform.isAndroid
&& final.stdenv.targetPlatform.is32bit
|| final.stdenv.targetPlatform.isMusl)
(until "9.11" ./patches/ghc/ghc-9.6-missing-symbols-deadbeef.patch)
++ onAarch64Musl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-linker-pool-allocator.patch)
++ onAarch64Musl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-linker-pool-allocator.patch)
++ onAarch64Musl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-linker-pool-allocator.patch)
++ onAarch64Musl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-linker-pool-allocator-2.patch)
++ onAarch64Musl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-linker-pool-allocator-2.patch)
++ onAarch64Musl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-linker-pool-allocator-2.patch)
++ onMusl (fromUntil "9.6" "9.8" ./patches/ghc/ghc-9.6-0001-Refactor-IServ.hs.patch)
++ onMusl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-0002-Drop-spurious-8-byte-offset-from-elf_plt.patch)
++ onMusl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-0002-Drop-spurious-8-byte-offset-from-elf_plt.patch)
++ onMusl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-0002-Drop-spurious-8-byte-offset-from-elf_plt.patch)
++ onAarch64Musl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-0003-Better-pool-alignment.-We-still-hardcode-section-ali.patch)
++ onAarch64Musl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-0003-Better-pool-alignment.-We-still-hardcode-section-ali.patch)
++ onAarch64Musl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-0003-Better-pool-alignment.-We-still-hardcode-section-ali.patch)
++ onAarch64Musl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-0007-fixup-Better-pool-alignment.-We-still-hardcode-secti.patch)
++ onAarch64Musl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-0007-fixup-Better-pool-alignment.-We-still-hardcode-secti.patch)
++ onAarch64Musl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-0007-fixup-Better-pool-alignment.-We-still-hardcode-secti.patch)
++ onAarch64Musl (fromUntil "9.6" "9.6.7" ./patches/ghc/ghc-9.6-0008-pool-improvements.patch)
++ onAarch64Musl (fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.6-0008-pool-improvements.patch)
++ onAarch64Musl (fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.6-0008-pool-improvements.patch)
# these two are abit questionable. They are pretty rough, and assume static binary as well as posix.
# onMusl (fromUntil "9.6" "9.11" ./patches/ghc/ghc-9.6-0004-ghcidladdr.patch)
# onMusl (fromUntil "9.6" "9.11" ./patches/ghc/ghc-9.6-0005-Better-interpreter-debugging.-Needs-ghcidladdr.patch)
# Fix docs/users_guide/rtd-theme/layout.html to work with sphinx 7
++ fromUntil "9.0" "9.6.7" ./patches/ghc/docs-sphinx-7.patch
++ fromUntil "9.6.7" "9.9" ./patches/ghc/docs-sphinx-7-ghc98.patch
# These two patches are needed for libblst, which has now hidden symbols, which the linker doesn't know how to deal with.
++ (
if final.stdenv.targetPlatform.isAndroid
then until "9.0" ./patches/ghc/ghc-8.10-0006-Adds-support-for-Hidden-symbols-android.patch
else until "9.0" ./patches/ghc/ghc-8.10-0006-Adds-support-for-Hidden-symbols.patch
++ until "9.0" ./patches/ghc/ghc-8.10-0006-Adds-support-for-Hidden-symbols-2.patch
)
++ onWindowsOrMusl (fromUntil "9.6" "9.7" ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch)
++ onWindowsOrMusl (fromUntil "9.8.2" "9.11" ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch)
++ onWindowsOrMusl (fromUntil "9.6" "9.7" ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols-2.patch)
++ onWindowsOrMusl (fromUntil "9.8.2" "9.11" ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols-2.patch)
++ fromUntil "9.9" "9.11" ./patches/ghc/ghc-9.9-Cabal-3.11.patch
++ fromUntil "9.8" "9.8.3" ./patches/ghc/ghc-9.8-text-upper-bound.patch
++ fromUntil "9.8.3" "9.8.4" ./patches/ghc/ghc-9.8.3-text-upper-bound.patch
++ fromUntil "9.10" "9.11" ./patches/ghc/ghc-9.10-containers-upper-bound.patch
++ fromUntil "9.10" "9.14" ./patches/ghc/ghc-9.10-merge-objects.patch
# This patch will make windows stop emitting absolute relocations. This is one way in which binutils 2.36+ (with ASLR enabled), will just choke on the
# assembly we generate because it's always absolute (32bit) addressing modes.
# GHC from 9.6+ seems to have https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7449, which should fix this as well.
++ onWindows (until "9.0" ./patches/ghc/windows-pseudo-pic-8.10.patch)
++ onWindows (fromUntil "9.0" "9.2" ./patches/ghc/windows-pseudo-pic.patch)
++ onWindows (fromUntil "9.2" "9.4" ./patches/ghc/windows-pseudo-pic-9.2.patch)
# Fix issue loading windows dll using `.dll.a` file
++ onWindows (fromUntil "9.4" "9.14" ./patches/ghc/ghc-9.10-windows-dll-dependent-symbol-type-fix.patch)
# See https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13709
++ fromUntil "9.8.4" "9.8.5" ./patches/ghc/ghc-9.8.4-remove-unused-containers-h-include13709.diff
# See https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12586
++ onWindows (fromUntil "9.6.6" "9.12" ./patches/ghc/ghc-win32-io-manager-compilation.patch)
# See https://gitlab.haskell.org/ghc/ghc/-/issues/16130
++ onAndroid (fromUntil "9.6.6" "9.12" ./patches/ghc/ghc-9.6-static-linker-script-support.patch)
++ onAndroid (from "9.12.1" ./patches/ghc/ghc-9.12-static-linker-script-support.patch)
++ onAndroid (from "9.6" ./patches/ghc/ghc-9.6-COMPAT_R_ARM_PREL31.patch)
++ onAndroid (from "9.10" ./patches/ghc/ghc-9.10-ignore-libc.patch)
;
in ({
ghc8107 = traceWarnOld "8.10" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc8107; };
bootPkgs = bootPkgs // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107
else final.buildPackages.buildPackages.haskell.compiler.ghc8107;
};
inherit sphinx;
useLLVM = !final.stdenv.targetPlatform.isx86;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc8107;
src-spec.version = "8.10.7";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "8.10.7";
});
ghc901 = traceWarnOld "9.0" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc901; };
bootPkgs = bootPkgs // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc901
else final.buildPackages.buildPackages.haskell.compiler.ghc902;
};
inherit sphinx;
useLLVM = !final.stdenv.targetPlatform.isx86;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc901;
src-spec.version = "9.0.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.0.1";
});
ghc902 = traceWarnOld "9.0" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc902; };
bootPkgs = bootPkgs // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc902
else final.buildPackages.buildPackages.haskell.compiler.ghc902;
};
inherit sphinx;
useLLVM = !final.stdenv.targetPlatform.isx86;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc902;
src-spec.version = "9.0.2";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.0.2";
});
ghc921 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc921; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc921;
src-spec.version = "9.2.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.1";
});
ghc922 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc922; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc922;
src-spec.version = "9.2.2";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.2";
});
ghc923 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc923; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc923;
src-spec.version = "9.2.3";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.3";
});
ghc924 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc924; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc924;
src-spec.version = "9.2.4";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.4";
});
ghc925 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc925; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc925;
src-spec.version = "9.2.5";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.5";
});
ghc926 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc926; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc926;
src-spec.version = "9.2.6";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.6";
});
ghc927 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc927; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc927;
src-spec.version = "9.2.7";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.7";
});
ghc928 = traceWarnOld "9.2" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc928; };
bootPkgs = bootPkgsGhc94 // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc8107;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc928;
src-spec.version = "9.2.8";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.2.8";
});
ghc941 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc941; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc941
else final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc941;
src-spec.version = "9.4.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.1";
});
ghc942 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc942; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc942
else final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc942;
src-spec.version = "9.4.2";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.2";
});
ghc943 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc943; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc943
else final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc943;
src-spec.version = "9.4.3";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.3";
});
ghc944 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc944; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc944
else final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc944;
src-spec.version = "9.4.4";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.4";
});
ghc945 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc945; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc945
else final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc945;
src-spec.version = "9.4.5";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.5";
});
ghc947 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc947; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc947
else final.buildPackages.buildPackages.haskell.compiler.ghc947
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc947;
src-spec.version = "9.4.7";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.7";
});
ghc948 = traceWarnOld "9.4" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc948; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc948
else final.buildPackages.buildPackages.haskell.compiler.ghc948
or final.buildPackages.buildPackages.haskell.compiler.ghc947
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc948;
src-spec.version = "9.4.8";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.4.8";
});
ghc961 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc961; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc961
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc961;
src-spec.version = "9.6.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.1";
});
ghc962 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc962; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc962
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc962;
src-spec.version = "9.6.2";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.2";
});
ghc963 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc963; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc963
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc963;
src-spec.version = "9.6.3";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.3";
});
ghc964 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc964; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc964
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc964;
src-spec.version = "9.6.4";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.4";
});
ghc965 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc965; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc965
else final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc965;
src-spec.version = "9.6.5";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.5";
});
ghc966 = traceWarnOld "9.6" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc966; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc966
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc966;
src-spec.version = "9.6.6";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.6.6";
});
ghc981 = traceWarnOld "9.8" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc981; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc966
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc981;
src-spec.version = "9.8.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.8.1";
});
ghc982 = traceWarnOld "9.8" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc982; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc966
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc982;
src-spec.version = "9.8.2";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.8.2";
});
ghc983 = traceWarnOld "9.8" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc983; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc983
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc983;
src-spec.version = "9.8.3";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.8.3";
});
ghc984 = traceWarnOld "9.8" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc984; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc984
else final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_12;
llvmPackages = final.llvmPackages_12;
src-spec.file = final.haskell-nix.sources.ghc984;
src-spec.version = "9.8.4";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.8.4";
});
ghc9101 = traceWarnOld "9.10" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc9101; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc9101
else # GHC 9.10.1 does not seem to build with ghc 9.8.4
# final.buildPackages.buildPackages.haskell.compiler.ghc984
# or final.buildPackages.buildPackages.haskell.compiler.ghc983
final.buildPackages.buildPackages.haskell.compiler.ghc982
or final.buildPackages.buildPackages.haskell.compiler.ghc981
or final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_15;
llvmPackages = final.llvmPackages_15;
src-spec.file = final.haskell-nix.sources.ghc9101;
src-spec.version = "9.10.1";
src-spec.needsBooting = true;
ghc-patches = ghc-patches "9.10.1";
});
ghc9121 = traceWarnOld "9.12" (final.callPackage ../compiler/ghc {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc9121; };
bootPkgs = bootPkgsGhc94 // {
ghc = if final.stdenv.buildPlatform != final.stdenv.targetPlatform
then final.buildPackages.buildPackages.haskell-nix.compiler.ghc9121
else final.buildPackages.buildPackages.haskell.compiler.ghc9121
or final.buildPackages.buildPackages.haskell.compiler.ghc9101
or final.buildPackages.buildPackages.haskell.compiler.ghc984
or final.buildPackages.buildPackages.haskell.compiler.ghc983
or final.buildPackages.buildPackages.haskell.compiler.ghc982
or final.buildPackages.buildPackages.haskell.compiler.ghc981
or final.buildPackages.buildPackages.haskell.compiler.ghc966
or final.buildPackages.buildPackages.haskell.compiler.ghc965
or final.buildPackages.buildPackages.haskell.compiler.ghc964
or final.buildPackages.buildPackages.haskell.compiler.ghc963
or final.buildPackages.buildPackages.haskell.compiler.ghc962
or final.buildPackages.buildPackages.haskell.compiler.ghc945
or final.buildPackages.buildPackages.haskell.compiler.ghc944
or final.buildPackages.buildPackages.haskell.compiler.ghc943;
};
inherit sphinx;
buildLlvmPackages = final.buildPackages.llvmPackages_15;
llvmPackages = final.llvmPackages_15;
src-spec.file = final.haskell-nix.sources.ghc9121;
src-spec.version = "9.12.1";
src-spec.needsBooting = true;