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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
|
# COMMON OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
#
# This file contains haskell package overrides that are shared by all
# haskell package sets provided by nixpkgs and distributed via the official
# NixOS hydra instance.
#
# Overrides that would also make sense for custom haskell package sets not provided
# as part of nixpkgs and that are specific to Nix should go in configuration-nix.nix
#
# See comment at the top of configuration-nix.nix for more information about this
# distinction.
{ pkgs, haskellLib }:
self: super:
let
inherit (pkgs) fetchpatch lib;
inherit (lib) throwIfNot versionOlder;
warnAfterVersion =
ver: pkg:
lib.warnIf (lib.versionOlder ver
super.${pkg.pname}.version
) "override for haskellPackages.${pkg.pname} may no longer be needed" pkg;
in
with haskellLib;
# To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead.
{
# Make sure that Cabal_* can be built as-is
Cabal_3_10_3_0 = doDistribute (
super.Cabal_3_10_3_0.override {
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
}
);
Cabal_3_12_1_0 = doDistribute (
super.Cabal_3_12_1_0.override {
Cabal-syntax = self.Cabal-syntax_3_12_1_0;
}
);
Cabal_3_14_2_0 =
overrideCabal
(drv: {
# Revert increased lower bound on unix since we have backported
# the required patch to all GHC bundled versions of unix.
postPatch = drv.postPatch or "" + ''
substituteInPlace Cabal.cabal --replace-fail "unix >= 2.8.6.0" "unix >= 2.6.0.0"
'';
})
(
doDistribute (
super.Cabal_3_14_2_0.override {
Cabal-syntax = self.Cabal-syntax_3_14_2_0;
}
)
);
Cabal_3_16_1_0 =
overrideCabal
(drv: {
# Revert increased lower bound on unix since we have backported
# the required patch to all GHC bundled versions of unix.
postPatch = drv.postPatch or "" + ''
substituteInPlace Cabal.cabal --replace-fail "unix >= 2.8.6.0" "unix >= 2.6.0.0"
'';
})
(
doDistribute (
super.Cabal_3_16_1_0.override {
Cabal-syntax = self.Cabal-syntax_3_16_1_0;
}
)
);
# Needs matching version of Cabal
Cabal-hooks = super.Cabal-hooks.override {
Cabal = self.Cabal_3_16_1_0;
};
# Needs Cabal>=3.14
cabal-lenses = super.cabal-lenses.override {
Cabal = self.Cabal_3_14_2_0;
};
# cabal-install needs most recent versions of Cabal and Cabal-syntax,
# so we need to put some extra work for non-latest GHCs
inherit
(
let
# !!! Use cself/csuper inside for the actual overrides
cabalInstallOverlay =
cself: csuper:
lib.optionalAttrs (lib.versionOlder csuper.ghc.version "9.14") {
Cabal = cself.Cabal_3_16_1_0;
Cabal-syntax = cself.Cabal-syntax_3_16_1_0;
};
in
{
cabal-install =
let
cabal-install = super.cabal-install.overrideScope cabalInstallOverlay;
scope = cabal-install.scope;
in
# Some dead code is not properly eliminated on aarch64-darwin, leading
# to bogus references to some dependencies.
overrideCabal (
old:
lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64) {
postInstall = ''
${old.postInstall or ""}
remove-references-to -t ${scope.HTTP} "$out/bin/.cabal-wrapped"
# if we don't override Cabal, it is taken from ghc's core libs
remove-references-to -t ${
if scope.Cabal != null then scope.Cabal else scope.ghc
} "$out/bin/.cabal-wrapped"
'';
}
) cabal-install;
cabal-install-solver = super.cabal-install-solver.overrideScope cabalInstallOverlay;
cabal2nix-unstable = super.cabal2nix-unstable.overrideScope cabalInstallOverlay;
distribution-nixpkgs-unstable = super.distribution-nixpkgs-unstable.overrideScope cabalInstallOverlay;
hackage-db-unstable = super.hackage-db-unstable.overrideScope cabalInstallOverlay;
}
)
cabal-install
cabal-install-solver
cabal2nix-unstable
distribution-nixpkgs-unstable
hackage-db-unstable
;
# Stack uses pure nix-shells for certain operations including HTTPS requests
# This patch makes stack add pkgs.cacert, so the certificate DB is available.
# https://github.com/commercialhaskell/stack/pull/6854 krank:ignore-line
stack =
appendPatches
[
(pkgs.fetchpatch {
name = "stack-add-cacert-to-pure-shells.patch";
url = "https://github.com/commercialhaskell/stack/commit/e869263cbd84a9e59ce1fa467e82993c8e7fb1dd.patch";
hash = "sha256-O7GaNgcGBY6m6GHqVtejqOu2HCWWKWXARPnr/upT1RQ=";
includes = [ "src/Stack/Nix.hs" ];
})
]
(
overrideCabal (drv: {
# Stack's source files use CRLF
prePatch = ''
${drv.prePatch or ""}
sed -i -e 's/\r$//' src/Stack/Nix.hs
'';
}) super.stack
);
# Extensions wants a specific version of Cabal for its list of Haskell
# language extensions.
extensions = doJailbreak (
super.extensions.override {
Cabal =
if versionOlder self.ghc.version "9.10" then
self.Cabal_3_12_1_0
else
# use GHC bundled version
# N.B. for GHC >= 9.12, extensions needs to be upgraded
null;
}
);
# First to upgrade to lsp >= 2.8 while HLS hasn't yet had a compatible release
futhark = super.futhark.override {
lsp = self.lsp_2_8_0_0;
lsp-test =
overrideCabal
(old: {
testTargets = [
"tests"
"func-test"
];
})
(
self.lsp-test_0_18_0_0.override {
lsp = self.lsp_2_8_0_0;
lsp-types = self.lsp-types_2_4_0_0;
}
);
lsp-types = self.lsp-types_2_4_0_0;
};
#######################################
### HASKELL-LANGUAGE-SERVER SECTION ###
#######################################
inherit
(
let
hls_overlay = lself: lsuper: {
# For fourmolu 0.18 and ormolu 0.7.7
Cabal-syntax = lself.Cabal-syntax_3_14_2_0;
Cabal = lself.Cabal_3_14_2_0;
# Jailbreaking cabal-install-parsers to make it pick Cabal 3.14 instead of 3.12.
cabal-install-parsers = doJailbreak lsuper.cabal-install-parsers;
# Need a newer version of extensions to be compatible with the newer Cabal
extensions = doJailbreak lself.extensions_0_1_1_0;
# For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix,
# because some packages, like ormolu, need a newer Cabal version.
# ghc-paths is special because it depends on Cabal for building
# its Setup.hs, and therefor declares a Cabal dependency, but does
# not actually use it as a build dependency.
# That means ghc-paths can just use the ghc included Cabal version,
# without causing package-db incoherence and we should do that because
# otherwise we have different versions of ghc-paths
# around which have the same abi-hash, which can lead to confusions and conflicts.
ghc-paths = lsuper.ghc-paths.override { Cabal = null; };
};
in
lib.mapAttrs (_: pkg: pkg.overrideScope hls_overlay) (
super
// {
# Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598
fourmolu = appendPatches [
(pkgs.fetchpatch {
name = "fourmolu-absolute-build-tool-paths.patch";
url = "https://github.com/fourmolu/fourmolu/commit/9217bc926ab80d20b815f0486be2184db07df4fc.patch";
hash = "sha256-ANzuKy5WfWCGZ7HFVBpTtuyUqzFfef/xR/v1KiyJEX4=";
})
] super.fourmolu;
# HLS 2.11: Too strict bound on Diff 1.0.
haskell-language-server = lib.pipe super.haskell-language-server [
dontCheck
(
if versionOlder self.ghc.version "9.10" || versionOlder "9.11" self.ghc.version then
addBuildDepends [
self.apply-refact
self.hlint
self.refact
]
else
lib.id
)
];
}
)
)
hlint
fourmolu
ormolu
haskell-language-server
hls-plugin-api
ghcide
lsp-types
;
# For -f-auto see cabal.project in haskell-language-server.
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser (
disableCabalFlag "auto" super.ghc-lib-parser-ex
);
# Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598
cabal-add = appendPatches [
(pkgs.fetchpatch {
name = "cabal-add-absolute-build-tool-paths.patch";
url = "https://github.com/Bodigrim/cabal-add/commit/3b94b0175c294c2d0a30b6d8da3f56189216816c.patch";
hash = "sha256-4Nbro9Gl+RC78yprO8fYG/IWS7QvJPd0dKqSZb5jq9k=";
})
] super.cabal-add;
###########################################
### END HASKELL-LANGUAGE-SERVER SECTION ###
###########################################
# network < 3.2.8
# bound only required when running under WINE: https://github.com/haskell/network/issues/604
iserv-proxy = doJailbreak super.iserv-proxy;
# Test ldap server test/ldap.js is missing from sdist
# https://github.com/supki/ldap-client/issues/18
ldap-client-og = dontCheck super.ldap-client-og;
# Support for template-haskell >= 2.16
language-haskell-extract = appendPatch (pkgs.fetchpatch {
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/language-haskell-extract-0.2.4.patch";
sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv";
}) (doJailbreak super.language-haskell-extract);
vector = overrideCabal (old: {
# vector-doctest seems to be broken when executed via ./Setup test
testTargets = [
"vector-tests-O0"
"vector-tests-O2"
];
# inspection-testing doesn't work on all archs & ABIs
doCheck = super.vector.doCheck && !self.inspection-testing.meta.broken;
}) super.vector;
# https://github.com/lspitzner/data-tree-print/issues/4
data-tree-print = doJailbreak super.data-tree-print;
# Test suite hangs on 32bit. Unclear if this is a bug or not, but if so, then
# it has been present in past versions as well.
# https://github.com/haskell-unordered-containers/unordered-containers/issues/491
unordered-containers =
if pkgs.stdenv.hostPlatform.is32bit then
dontCheck super.unordered-containers
else
super.unordered-containers;
aeson =
# aeson's test suite includes some tests with big numbers that fail on 32bit
# https://github.com/haskell/aeson/issues/1060
dontCheckIf pkgs.stdenv.hostPlatform.is32bit
# Deal with infinite and NaN values generated by QuickCheck-2.14.3
super.aeson;
time-compat = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
(lib.concatStringsSep "&&" [
# Precision tests often fail in VMs:
# https://github.com/haskellari/time-compat/issues/31
"!/getCurrentTime/"
"!/taiClock/"
])
];
}) super.time-compat;
# 2023-06-28: Test error: https://hydra.nixos.org/build/225565149
orbits = dontCheck super.orbits;
# 2025-02-10: Too strict bounds on tasty-quickcheck < 0.11
tasty-discover = doJailbreak super.tasty-discover;
# 2025-02-10: Too strict bounds on tasty < 1.5
tasty-hunit-compat = doJailbreak super.tasty-hunit-compat;
# Makes cross-compilation hang
# https://github.com/composewell/streamly/issues/2840
streamly-core = overrideCabal (drv: {
postPatch = ''
substituteInPlace src/Streamly/Internal/Data/Array/Stream.hs \
--replace-fail '{-# INLINE splitAtArrayListRev #-}' ""
'';
}) super.streamly-core;
# Work around tasty >= 1.5.4 parallelism breaking the test suite
criterion = appendPatches [
(pkgs.fetchpatch {
name = "criterion-tasty-1.5.4.patch";
url = "https://github.com/haskell/criterion/commit/d555422d1779434432489efbc19d75011226c3e6.patch";
hash = "sha256-VRSfdzT/mzdRSMQmmIeycuChvRN/VDhYsHJQb0bRMaA=";
})
] super.criterion;
# Avoid rebinding to the same port with tasty >= 1.5.4 parallelism
# https://github.com/lpeterse/haskell-socket/pull/73
socket = appendPatches [
(pkgs.fetchpatch {
name = "socket-tasty-1.5.4.patch";
url = "https://github.com/lpeterse/haskell-socket/commit/a2687d9f1a60cfb72f85962c501a68d110ed6de0.patch";
hash = "sha256-21qkRFnRF6nuM1BILps8o5A/QvaVQ6SkKxO0u2goXos=";
})
] super.socket;
# https://github.com/flip111/haskell-socket-unix/issues/1
socket-unix = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [ "-j1" ];
}) super.socket-unix;
# Expected failures are fixed as of GHC-9.10,
# but the tests haven't been updated yet.
# https://github.com/ocharles/weeder/issues/198
weeder = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
"!/wrong/"
];
}) super.weeder;
# Test suite doesn't find necessary test files when compiling
# https://github.com/yesodweb/shakespeare/issues/294
shakespeare = dontCheck super.shakespeare;
# Work around -Werror failures until a more permanent solution is released
# https://github.com/haskell-cryptography/HsOpenSSL/issues/88
# https://github.com/haskell-cryptography/HsOpenSSL/issues/93
# https://github.com/haskell-cryptography/HsOpenSSL/issues/95
HsOpenSSL = appendConfigureFlags [
"--ghc-option=-optc=-Wno-error=incompatible-pointer-types"
] super.HsOpenSSL;
# https://github.com/rethab/bindings-dsl/issues/46
bindings-libcddb = appendConfigureFlags [
"--ghc-option=-optc=-Wno-error=incompatible-pointer-types"
] super.bindings-libcddb;
# https://github.com/ocramz/hdf5-lite/issues/3
hdf5-lite = appendConfigureFlags [
"--ghc-option=-optc=-Wno-error=implicit-function-declaration"
] super.hdf5-lite;
# https://github.com/awkward-squad/termbox/issues/5
termbox-bindings-c = appendConfigureFlags [
"--ghc-option=-optc=-Wno-error=implicit-function-declaration"
] super.termbox-bindings-c;
# There are numerical tests on random data, that may fail occasionally
lapack = dontCheck super.lapack;
# fpr-calc test suite depends on random >= 1.3
# see https://github.com/IntersectMBO/lsm-tree/issues/797
bloomfilter-blocked =
lib.warnIf (lib.versionAtLeast self.random.version "1.3")
"haskellPackages.bloomfilter-blocked: dontCheck can potentially be removed"
dontCheck
super.bloomfilter-blocked;
# Missing files necessary for test suite compilation
# https://github.com/brandonchinn178/kdl-hs/issues/33
kdl-hs = dontCheck super.kdl-hs;
# support for transformers >= 0.6
lifted-base = appendPatch (fetchpatch {
url = "https://github.com/basvandijk/lifted-base/commit/6b61483ec7fd0d5d5d56ccb967860d42740781e8.patch";
sha256 = "sha256-b29AVDiEMcShceRJyKEauK/411UkOh3ME9AnKEYvcEs=";
}) super.lifted-base;
# 2025-08-08: Allow QuickCheck >= 2.15 in selective's test-suite
# https://github.com/snowleopard/selective/pull/81
selective = doJailbreak super.selective;
# 2025-09-03: Allow QuickCheck >= 2.15
# https://github.com/sw17ch/data-clist/pull/28
data-clist = doJailbreak super.data-clist;
# 2025-09-20: Allow QuickCheck >= 2.15
# https://github.com/raehik/binrep/issues/14
binrep = warnAfterVersion "1.1.0" (doJailbreak super.binrep);
# Test suite can't be built with GHC 9.10, incorrect lower bound on t-h
# https://codeberg.org/noiioiu/comonad-coactions/issues/1#issuecomment-14082215
comonad-coactions = dontCheck (doJailbreak super.comonad-coactions);
# doctests don't evaluate properly
# https://github.com/morphismtech/distributors/issues/23
distributors = dontCheck super.distributors;
# Test files missing from sdist
# https://github.com/sol/ghc-bench/issues/81
ghc-bench = dontCheck super.ghc-bench;
# Needs QuickCheck >= 2.16
# https://github.com/input-output-hk/io-sim/issues/248
io-sim = dontCheck super.io-sim;
# Test suites broken by hakyll 4.16, but lib is still okay
# https://github.com/LaurentRDC/hakyll-images/issues/14
hakyll-images = dontCheck super.hakyll-images;
# 2024-06-23: Hourglass is archived and had its last commit 6 years ago.
# Patch is needed to add support for time 1.10, which is only used in the tests
# https://github.com/vincenthz/hs-hourglass/pull/56
# Jailbreak is needed because a hackage revision added the (correct) time <1.10 bound.
hourglass = doJailbreak (
appendPatches [
(pkgs.fetchpatch {
name = "hourglass-pr-56.patch";
url = "https://github.com/vincenthz/hs-hourglass/commit/cfc2a4b01f9993b1b51432f0a95fa6730d9a558a.patch";
sha256 = "sha256-gntZf7RkaR4qzrhjrXSC69jE44SknPDBmfs4z9rVa5Q=";
})
] super.hourglass
);
# Arion's test suite needs a Nixpkgs, which is cumbersome to do from Nixpkgs
# itself. For instance, pkgs.path has dirty sources and puts a huge .git in the
# store. Testing is done upstream.
arion-compose = dontCheck super.arion-compose;
# Don't call setEnv in parallel in the test suite (which leads to flaky failures)
env-extra = appendPatches [
(pkgs.fetchpatch {
name = "env-extra-no-parallel-setenv.patch";
url = "https://github.com/d12frosted/env-extra/commit/4fcbc031b210e71e4243fcfe7c48d381e2f51d78.patch";
sha256 = "sha256-EbXk+VOmxMJAMCMTXpTiW8fkbNI9za7f1alzCeaJaV4=";
excludes = [ "package.yaml" ];
})
] super.env-extra;
# This used to be a core package provided by GHC, but then the compiler
# dropped it. We define the name here to make sure that old packages which
# depend on this library still evaluate (even though they won't compile
# successfully with recent versions of the compiler).
bin-package-db = null;
# waiting for release: https://github.com/jwiegley/c2hsc/issues/41
c2hsc = appendPatch (fetchpatch {
url = "https://github.com/jwiegley/c2hsc/commit/490ecab202e0de7fc995eedf744ad3cb408b53cc.patch";
sha256 = "1c7knpvxr7p8c159jkyk6w29653z5yzgjjqj11130bbb8mk9qhq7";
}) super.c2hsc;
# https://github.com/agrafix/superbuffer/issues/4
# Too strict bounds on bytestring < 0.12
superbuffer = doJailbreak super.superbuffer;
# Infinite recursion with test enabled.
# 2025-02-14: Too strict bounds on attoparsec < 0.14
attoparsec-varword = doJailbreak (dontCheck super.attoparsec-varword);
# Fix t_iter test which fails randomly, but frequently. No upstream feedback so far.
# https://github.com/haskell/attoparsec/issues/232
attoparsec = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
"$0!=\"tests.buf.t_iter\""
];
}) super.attoparsec;
attoparsec-isotropic = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
"$0!=\"tests.leftToRight.buf.t_iter\""
];
}) super.attoparsec-isotropic;
# These packages (and their reverse deps) cannot be built with profiling enabled.
ghc-heap-view = lib.pipe super.ghc-heap-view [
disableLibraryProfiling
(warnAfterVersion "0.6.4.1")
# 2025-09-18: Too strict bounds on base < 4.20
doJailbreak
];
ghc-datasize = disableLibraryProfiling super.ghc-datasize;
ghc-vis = disableLibraryProfiling super.ghc-vis;
# 2025-09-20: Too strict upper bound on base (<4.20)
# https://github.com/phadej/regression-simple/issues/13
regression-simple = doJailbreak super.regression-simple;
# Fix 32bit struct being used for 64bit syscall on 32bit platforms
# https://github.com/haskellari/lukko/issues/15
lukko = appendPatches [
(fetchpatch {
name = "lukko-ofd-locking-32bit.patch";
url = "https://github.com/haskellari/lukko/pull/32/commits/4e69ffad996c3771f50017b97375af249dd17c85.patch";
sha256 = "0n8vig48irjz0jckc20dzc23k16fl5hznrc0a81y02ms72msfwi1";
})
] super.lukko;
# Relax version constraints (network < 3.2, text < 2.1)
# https://github.com/essandess/adblock2privoxy/pull/43
adblock2privoxy = doJailbreak super.adblock2privoxy;
# 2025-07-15: Relax version constraints (network < 3.2)
# Fixed upstream, but unreleased: https://github.com/fumieval/mason/pull/14
mason = (warnAfterVersion "0.2.6") (doJailbreak super.mason);
# Missing test file https://gitlab.com/dpwiz/hs-jpeg-turbo/-/issues/1
jpeg-turbo = dontCheck super.jpeg-turbo;
JuicyPixels-jpeg-turbo = dontCheck super.JuicyPixels-jpeg-turbo;
# Repo is archived, package is abandoned: https://github.com/haskell-foundation/foundation
basement = appendPatches [
# Fixes compilation for basement on i686
# https://github.com/haskell-foundation/foundation/pull/573
(fetchpatch {
name = "basement-i686-ghc-9.4.patch";
url = "https://github.com/haskell-foundation/foundation/pull/573/commits/38be2c93acb6f459d24ed6c626981c35ccf44095.patch";
sha256 = "17kz8glfim29vyhj8idw8bdh3id5sl9zaq18zzih3schfvyjppj7";
stripLen = 1;
})
./patches/basement-add-cast.patch # Fixes compilation on windows
./patches/basement-ghcjs.patch # Fixes compilation on ghcjs
] super.basement;
# Repo is archived, package is abandoned: https://github.com/haskell-foundation/foundation
# Fixes compilation on ghcjs
foundation = appendPatch ./patches/foundation-ghcjs.patch super.foundation;
# Fixes compilation of memory with GHC >= 9.4 on 32bit platforms
# https://github.com/vincenthz/hs-memory/pull/99
memory = appendPatches [
(fetchpatch {
name = "memory-i686-ghc-9.4.patch";
url = "https://github.com/vincenthz/hs-memory/pull/99/commits/2738929ce15b4c8704bbbac24a08539b5d4bf30e.patch";
sha256 = "196rj83iq2k249132xsyhbbl81qi1j23h9pa6mmk6zvxpcf63yfw";
})
] super.memory;
# Depends on outdated deps hedgehog < 1.4, doctest < 0.12 for tests
# As well as deepseq < 1.5 (so it forbids GHC 9.8)
hw-fingertree = doJailbreak super.hw-fingertree;
# Test suite is slow and sometimes comes up with counter examples.
# Upstream is aware (https://github.com/isovector/nspace/issues/1),
# if it's a bug, at least doesn't seem to be nixpkgs-specific.
nspace = dontCheck super.nspace;
# Unreleased commits relaxing bounds on various dependencies
gitit = appendPatches [
(fetchpatch {
name = "gitit-allow-hoauth2-2.14.patch";
url = "https://github.com/jgm/gitit/commit/58a226c48b37f076ccc1b94ad88a9ffc05f983cc.patch";
sha256 = "1fvfzbas18vsv9qvddp6g82hy9hdgz34n51w6dpkd7cm4sl07pjv";
})
(fetchpatch {
name = "gitit-allow-pandoc-3.6.patch";
url = "https://github.com/jgm/gitit/commit/c57c790fa0db81d383f22901a0db4ffe90f1bfcc.patch";
sha256 = "0nbzxyc9gkhkag1fhv3qmw5zgblhbz0axrlsismrcvdzr28amii8";
})
(fetchpatch {
name = "gitit-allow-zlib-0.7-network-3.2.patch";
url = "https://github.com/jgm/gitit/commit/efaee62bc32c558e618ad34458fa2ef85cb8eb1e.patch";
sha256 = "1ghky3afnib56w102mh09cz2alfyq743164mnjywwfl6a6yl6i5h";
})
(pkgs.fetchpatch {
name = "gitit-pandoc-3.7.patch";
url = "https://github.com/jgm/gitit/commit/211631ffdd8b520f368220e5cfbd8d64a28b43b6.patch";
hash = "sha256-eVjwiGNfEKmeamsUfTNCxJm7OJ7N9xuYHfFllwtwRi0=";
})
(pkgs.fetchpatch {
name = "gitit-xml-conduit-1.10.patch";
url = "https://github.com/jgm/gitit/commit/88d1a91795e08ea573d50f4f24e2e1c5d6da5002.patch";
hash = "sha256-LrP51+Uxp1VPKrDkIhVlm3kSAnYkodiENtLbWHxV3B4=";
})
] super.gitit;
# Cut off infinite recursion via test suites:
#
# tasty-quickcheck-0.11.1 (test) -> regex-tdfa-1.3.2.4 (test) -> doctest-parallel-0.4
# -> ghc-exactprint-1.10.0.0 -> extra-1.8 -> quickcheck-instances-0.3.33 (test)
# -> uuid-types-1.0.6 (test) -> tasty-quickcheck-0.11.1
#
# tasty-quickcheck is probably the least risky test suite to disable.
tasty-quickcheck = dontCheck super.tasty-quickcheck;
# https://github.com/schuelermine/ret/issues/3
ret = doJailbreak super.ret; # base < 4.19
# The latest release on hackage has an upper bound on containers which
# breaks the build, though it works with the version of containers present
# and the upper bound doesn't exist in code anymore:
# > https://github.com/roelvandijk/numerals
numerals = doJailbreak (dontCheck super.numerals);
# Bound on containers is too strict but jailbreak doesn't work with conditional flags
# https://github.com/NixOS/jailbreak-cabal/issues/24
containers-unicode-symbols = overrideCabal {
postPatch = ''
substituteInPlace containers-unicode-symbols.cabal \
--replace 'containers >= 0.5 && < 0.6.5' 'containers'
'';
} super.containers-unicode-symbols;
# Test file not included on hackage
numerals-base = dontCheck (doJailbreak super.numerals-base);
# This test keeps being aborted because it runs too quietly for too long
Lazy-Pbkdf2 =
if pkgs.stdenv.hostPlatform.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2;
# check requires mysql server
mysql-simple = dontCheck super.mysql-simple;
# Requires file-io >= 0.2 if using OsPath flag (which we want for GHC >= 9.10)
git-annex = lib.pipe (super.git-annex.override { file-io = self.file-io_0_2_0; }) [
(overrideCabal (drv: {
# Hackage tarball only includes what is supported by `cabal install git-annex`,
# but we want e.g. completions as well. See
# https://web.archive.org/web/20160724083703/https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/
# or git-annex @ 3571b077a1244330cc736181ee04b4d258a78476 doc/bugs/bash_completion_file_is_missing*
src = pkgs.fetchgit {
name = "git-annex-${super.git-annex.version}-src";
url = "git://git-annex.branchable.com/";
tag = super.git-annex.version;
sha256 = "sha256-9DHaOZplSGuUQufra/hMdpykztbKKjDfu1Rp9zUs+tg=";
# delete android and Android directories which cause issues on
# darwin (case insensitive directory). Since we don't need them
# during the build process, we can delete it to prevent a hash
# mismatch on darwin.
postFetch = ''
rm -r $out/doc/?ndroid*
'';
};
patches = drv.patches or [ ] ++ [
# Prevent .desktop files from being installed to $out/usr/share.
# TODO(@sternenseemann): submit upstreamable patch resolving this
# (this should be possible by also taking PREFIX into account).
./patches/git-annex-no-usr-prefix.patch
];
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \
'InstallDesktopFile git-annex'
'';
# Work around race condition in test suite exposed by tasty-1.5.4
# TODO(@sternenseemann): make testFlags arg usable with git-annex
preCheck = ''
${drv.preCheck or ""}
appendToVar checkFlags -j1
'';
}))
];
# Fix test trying to access /home directory
shell-conduit = overrideCabal (drv: {
postPatch = "sed -i s/home/tmp/ test/Spec.hs";
}) super.shell-conduit;
# No maintenance planned until eventual removal
# Throw added 2026-08-19
# https://github.com/NixOS/nixfmt/issues/340#issuecomment-3315920564
nixfmt =
lib.throwIf pkgs.config.allowAliases
"haskell.packages.*.nixfmt has been removed as it is deprecated and unmaintained. Consider using top-level nixfmt instead."
(doJailbreak super.nixfmt);
# Too strict upper bounds on turtle and text
# https://github.com/awakesecurity/nix-deploy/issues/35
nix-deploy = doJailbreak super.nix-deploy;
call-stack = appendPatches [
# Fixes test suites with GHC >= 9.10
(pkgs.fetchpatch {
name = "call-stack-tests-normalize-pkg-name.patch";
url = "https://github.com/sol/call-stack/commit/cbbee23ce309d18201951e16a8b6d30b57e2bdf9.patch";
sha256 = "sha256-xkdjf8zXW+UMxot2Z8WYYmvAJsT+VGKXWGt19mZZwCg=";
includes = [ "test/Data/CallStackSpec.hs" ];
})
] super.call-stack;
# Too strict upper bound on algebraic-graphs
# https://github.com/awakesecurity/nix-graph/issues/5
nix-graph = doJailbreak super.nix-graph;
# Pass in `pkgs.nix` for the required tools. This means that overriding
# them sort of works, but only if you override all instances.
nix-paths =
if with pkgs.stdenv; buildPlatform.canExecute hostPlatform then
super.nix-paths.override {
nix-build = pkgs.nix;
nix-env = pkgs.nix;
nix-hash = pkgs.nix;
nix-instantiate = pkgs.nix;
nix-store = pkgs.nix;
}
else
# When cross-compiling, nix-paths won't be able to detect
# the path to the (host) tools at build time from PATH,
# so we instruct it to check at runtime.
enableCabalFlag "allow-relative-paths" (
super.nix-paths.override {
nix-build = null;
nix-env = null;
nix-hash = null;
nix-instantiate = null;
nix-store = null;
}
);
# Fix `mv` not working on directories
turtle = appendPatches [
(pkgs.fetchpatch {
name = "turtle-fix-mv.patch";
url = "https://github.com/Gabriella439/turtle/commit/b3975531f8d6345da54b005f226adab095085865.patch";
sha256 = "sha256-EqvMQpRz/7hbY6wJ0xG8Ou6oKhwWdpjzBv+NPW6tnSY=";
includes = [ "src/Turtle/Prelude.hs" ];
})
] super.turtle;
# Allow inspection-testing >= 0.6 in test suite
algebraic-graphs = appendPatch (pkgs.fetchpatch2 {
name = "algebraic-graphs-0.7-allow-inspection-testing-0.6.patch";
url = "https://github.com/snowleopard/alga/commit/d4e43fb42db05413459fb2df493361d5a666588a.patch";
hash = "sha256-feGEuALVJ0Zl8zJPIfgEFry9eH/MxA0Aw7zlDq0PC/s=";
}) super.algebraic-graphs;
inspection-testing = overrideCabal (drv: {
broken =
with pkgs.stdenv.hostPlatform;
# Relies on DWARF <-> register mappings in GHC, not available for every arch & ABI
# (check dwarfReturnRegNo in compiler/GHC/CmmToAsm/Dwarf/Constants.hs, that's where ppc64 elfv1 gives up)
!(isx86 || (isPower64 && isAbiElfv2) || isAarch64)
# We compile static with -fexternal-interpreter which is incompatible with plugins
|| (isStatic && lib.versionAtLeast self.ghc.version "9.10");
}) super.inspection-testing;
# Too strict bounds on filepath, hpsec, tasty, tasty-quickcheck, transformers
# https://github.com/illia-shkroba/pfile/issues/3
pfile = doJailbreak super.pfile;
# Overly strict bounds on postgresql-simple (< 0.7), tasty (< 1.5) and tasty-quickcheck (< 0.11)
# https://github.com/tdammers/migrant/pull/5
migrant-core = doJailbreak super.migrant-core;
migrant-sqlite-simple = doJailbreak super.migrant-sqlite-simple;
migrant-hdbc = doJailbreak super.migrant-hdbc;
migrant-postgresql-simple = doJailbreak super.migrant-postgresql-simple;
# 2025-09-03: jailbreak for base 4.20 and hashable 1.5
# https://github.com/typeclasses/ascii-case/pulls/1
ascii-case = lib.pipe super.ascii-case [
(warnAfterVersion "1.0.1.4")
doJailbreak
];
# 2025-12-11: Too strict bound on containers (<0.7)
# https://github.com/byteverse/disjoint-containers/pull/15
disjoint-containers = doJailbreak super.disjoint-containers;
# Test suite doesn't compile with 9.6
# https://github.com/sebastiaanvisser/fclabels/issues/45
# Doesn't compile with 9.8 at all
# https://github.com/sebastiaanvisser/fclabels/issues/46
fclabels =
if lib.versionOlder self.ghc.version "9.8" then
dontCheck super.fclabels
else
dontDistribute (markBroken super.fclabels);
# Bounds on base are too strict. Upstream is no longer maintained:
# https://github.com/phadej/regex-applicative-text/issues/13 krank:ignore-line
regex-applicative-text = doJailbreak super.regex-applicative-text;
# Tests require a Kafka broker running locally
haskakafka = dontCheck super.haskakafka;
# https://github.com/itchyny/qhs/issues/8
qhs = overrideSrc {
version = "0.4.3";
src = pkgs.fetchzip {
url = "mirror://hackage/qhs-0.4.3/qhs-0.4.3.tar.gz";
sha256 = "191015m47qdxzi8w5pvadgv95g8vk7v2gr76jzfgglyjy6zhb5wb";
};
} (warnAfterVersion "0.4.2" super.qhs);
# Fix build with time >= 1.10 while retaining compat with time < 1.9
mbox = appendPatch ./patches/mbox-time-1.10.patch (
overrideCabal {
editedCabalFile = null;
revision = null;
} super.mbox
);
# https://github.com/techtangents/ablist/issues/1
ABList = dontCheck super.ABList;
inline-c-cpp = overrideCabal (drv: {
postPatch = (drv.postPatch or "") + ''
substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" ""
'';
}) super.inline-c-cpp;
# Too strict upper bound on unicode-transforms
# <https://gitlab.com/ngua/ipa-hs/-/issues/1>
ipa = doJailbreak super.ipa;
# Test suite depends on source code being available
simple-affine-space = dontCheck super.simple-affine-space;
# These packages try to execute non-existent external programs.
cmaes = dontCheck super.cmaes; # http://hydra.cryp.to/build/498725/log/raw
filestore = dontCheck super.filestore;
squeal-postgresql = dontCheck super.squeal-postgresql;
snowball = dontCheck super.snowball;
sophia = dontCheck super.sophia;
test-sandbox = dontCheck super.test-sandbox;
texrunner = dontCheck super.texrunner;
wai-middleware-hmac = dontCheck super.wai-middleware-hmac;
xmlgen = dontCheck super.xmlgen;
wai-cors = dontCheck super.wai-cors;
# Needs QuickCheck >= 2.16, but Stackage is currently on 2.15
integer-logarithms =
lib.warnIf (lib.versionAtLeast super.QuickCheck.version "2.16")
"override for haskellPackages.integer-logarithms may no longer be needed"
(dontCheck super.integer-logarithms);
# Apply patch fixing an incorrect QuickCheck property which occasionally causes false negatives
# https://github.com/Philonous/xml-picklers/issues/5
xml-picklers = appendPatch (pkgs.fetchpatch {
name = "xml-picklers-fix-prop-xp-attribute.patch";
url = "https://github.com/Philonous/xml-picklers/commit/887e5416b5e61c589cadf775d82013eb87751ea2.patch";
sha256 = "sha256-EAyTVkAqCvJ0lRD0+q/htzBJ8iD5qP47j5i2fKhRrlw=";
}) super.xml-picklers;
pandoc-crossref = lib.pipe super.pandoc-crossref [
# https://github.com/lierdakil/pandoc-crossref/issues/492
doJailbreak
# We are still using pandoc == 3.7.*
(appendPatch (
lib.warnIf (lib.versionAtLeast self.pandoc.version "3.8")
"haskellPackages.pandoc-crossref: remove revert of pandoc-3.8 patch"
pkgs.fetchpatch
{
name = "pandoc-crossref-revert-pandoc-3.8-highlight.patch";
url = "https://github.com/lierdakil/pandoc-crossref/commit/b0c35a59d5a802f6525407bfeb31699ffd0b4671.patch";
hash = "sha256-MIITL9Qr3+1fKf1sTwHzXPcYTt3YC+vr9CpMgqsBXlc=";
revert = true;
}
))
];
pandoc = overrideCabal (drv: {
patches = drv.patches or [ ] ++ [
# Adjust test fixtures for djot >= 0.1.2.3, patch extracted from unrelated change.
(pkgs.fetchpatch {
name = "pandoc-djot-0.1.2.3.patch";
url = "https://github.com/jgm/pandoc/commit/643712ca70b924c0edcc059699aa1ee42234be34.patch";
hash = "sha256-khDkb1PzC0fTaWTq3T04UvgoI+XefOJMaTV1d3Du8BU=";
includes = [ "test/djot-reader.native" ];
})
# Adjust tests for skylighting-format-blaze-html >= 0.1.2
(pkgs.fetchpatch {
name = "pandoc-skylighting-format-blaze-html-0.1.2.patch";
url = "https://github.com/jgm/pandoc/commit/cab682ba58f2eb7e940d1af508e196ff6b1c1112.patch";
hash = "sha256-lpddKGa8xs+Lhi62HhBgV04fUq2kkippA1xX2/b2ukM=";
includes = [ "test/Tests/Writers/HTML.hs" ];
})
# Resolve test suite race condition(s) due to tasty >= 1.5.4 and
# inDirectory, https://github.com/jgm/pandoc/issues/11566 krank:ignore-line
(pkgs.fetchpatch {
name = "pandoc-tests-fix-race-condition.patch";
url = "https://github.com/jgm/pandoc/commit/134296c54145ef8ea7de523774837055239e0b3d.patch";
hash = "sha256-s3v6ukoVZm8cvh9mAp0U+cQDT3p8QSu1F0oQD4Ks9F8=";
})
];
}) super.pandoc;
# Too strict upper bound on data-default-class (< 0.2)
# https://github.com/stackbuilders/dotenv-hs/issues/203
dotenv = doJailbreak super.dotenv;
# 2022-01-29: Tests require package to be in ghc-db.
aeson-schemas = dontCheck super.aeson-schemas;
# Too strict bounds on transformers and resourcet
# https://github.com/alphaHeavy/lzma-conduit/issues/23 krank:ignore-line
lzma-conduit = doJailbreak super.lzma-conduit;
# 2020-06-05: HACK: does not pass own build suite - `dontCheck`
# 2024-01-15: too strict bound on free < 5.2
hnix = doJailbreak super.hnix;
# 2025-09-13: too strict bound on algebraic-graphs
hnix-store-core = warnAfterVersion "0.6.1.0" (doJailbreak super.hnix-store-core);
# hnix doesn't support hnix-store-core >= 0.8: https://github.com/haskell-nix/hnix/pull/1112
hnix-store-core_0_8_0_0 = doDistribute super.hnix-store-core_0_8_0_0;
hnix-store-db = super.hnix-store-db.override { hnix-store-core = self.hnix-store-core_0_8_0_0; };
hnix-store-json = super.hnix-store-json.override {
hnix-store-core = self.hnix-store-core_0_8_0_0;
};
hnix-store-readonly = super.hnix-store-readonly.override {
hnix-store-core = self.hnix-store-core_0_8_0_0;
};
hnix-store-remote_0_7_0_0 = doDistribute (
super.hnix-store-remote_0_7_0_0.override { hnix-store-core = self.hnix-store-core_0_8_0_0; }
);
hnix-store-tests = super.hnix-store-tests.override {
hnix-store-core = self.hnix-store-core_0_8_0_0;
};
# Fails for non-obvious reasons while attempting to use doctest.
focuslist = dontCheck super.focuslist;
# ships broken Setup.hs https://github.com/facebook/Haxl/issues/165
# https://github.com/facebook/Haxl/pull/164
haxl = overrideCabal (drv: {
postPatch = ''
${drv.postPatch or ""}
rm Setup.hs
'';
# non-deterministic failure https://github.com/facebook/Haxl/issues/85
# doesn't compile with text-2.1.2 in <2.5.1.2
doCheck = false;
}) super.haxl;
# Disable test suites to fix the build.
acme-year = dontCheck super.acme-year; # http://hydra.cryp.to/build/497858/log/raw
binary-search = dontCheck super.binary-search;
bloodhound = dontCheck super.bloodhound; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10
command-qq = dontCheck super.command-qq; # http://hydra.cryp.to/build/499042/log/raw
crc = dontCheck super.crc; # https://github.com/MichaelXavier/crc/issues/2
directory-layout = dontCheck super.directory-layout;
ed25519 = dontCheck super.ed25519;
fb = dontCheck super.fb; # needs credentials for Facebook
friday-juicypixels = dontCheck super.friday-juicypixels; # tarball missing test/rgba8.png
github-rest = dontCheck super.github-rest; # test suite needs the network
gitlib-cmdline = dontCheck super.gitlib-cmdline;
hackport = dontCheck super.hackport;
hedis = dontCheck super.hedis;
hlibgit2 = disableHardening [ "format" ] super.hlibgit2;
hs2048 = dontCheck super.hs2048;
# 2025-02-11: Too strict bounds on bytestring
hsexif = doJailbreak (dontCheck super.hsexif);
hspec-server = dontCheck super.hspec-server;
HTF = overrideCabal (orig: {
# The scripts in scripts/ are needed to build the test suite.
preBuild = "patchShebangs --build scripts";
# test suite doesn't compile with aeson >= 2.0
# https://github.com/skogsbaer/HTF/issues/114
doCheck = false;
}) super.HTF;
http-link-header = dontCheck super.http-link-header; # non deterministic failure https://hydra.nixos.org/build/75041105
influxdb = dontCheck super.influxdb;
integer-roots = dontCheck super.integer-roots; # requires an old version of smallcheck, will be fixed in > 1.0
itanium-abi = dontCheck super.itanium-abi;
language-slice = dontCheck super.language-slice;
# Group of libraries by same upstream maintainer for interacting with
# Telegram messenger. Bit-rotted a bit since 2020.
tdlib = appendPatch (fetchpatch {
# https://github.com/poscat0x04/tdlib/pull/3
url = "https://github.com/poscat0x04/tdlib/commit/8eb9ecbc98c65a715469fdb8b67793ab375eda31.patch";
hash = "sha256-vEI7fTsiafNGBBl4VUXVCClW6xKLi+iK53fjcubgkpc=";
}) (doJailbreak super.tdlib);
tdlib-types = doJailbreak super.tdlib-types;
tdlib-gen = doJailbreak super.tdlib-gen;
# https://github.com/poscat0x04/language-tl/pull/1
language-tl = doJailbreak super.language-tl;
ldap-client = dontCheck super.ldap-client;
matplotlib = dontCheck super.matplotlib;
modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*)
opaleye = dontCheck super.opaleye;
os-release = dontCheck super.os-release;
parameterized = dontCheck super.parameterized; # https://github.com/louispan/parameterized/issues/2
persistent-redis = dontCheck super.persistent-redis;
posix-pty = dontCheck super.posix-pty; # https://github.com/merijn/posix-pty/issues/12
postgresql-binary = dontCheck super.postgresql-binary; # needs a running postgresql server
pwstore-cli = dontCheck super.pwstore-cli;
quantities = dontCheck super.quantities;
# https://github.com/LeventErkok/sbv/pull/772#issuecomment-3930657736
# SBV requires a multitude of external tools, some not packaged with nixpkgs
# for tests to pass, users may only want to use one or two of tools.
# maintainer recomends disabling tests
sbv = dontCheck super.sbv;
sdl2 = dontCheck super.sdl2; # the test suite needs an x server
shadowsocks = dontCheck super.shadowsocks;
sourcemap = dontCheck super.sourcemap;
tar = dontCheck super.tar; # https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit)
tpdb = dontCheck super.tpdb;
ua-parser = dontCheck super.ua-parser;
unagi-chan = dontCheck super.unagi-chan;
# Test in question times out on Hydra builders.
grisette = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-t"
"!mrgAsum/semantics"
];
}) super.grisette;
# Allow template-haskell 2.22
# https://github.com/well-typed/ixset-typed/pull/23
ixset-typed =
appendPatches
[
(fetchpatch {
name = "ixset-typed-template-haskell-2.21.patch";
url = "https://github.com/well-typed/ixset-typed/commit/085cccbaa845bff4255028ed5ff71402e98a953a.patch";
sha256 = "1cz30dmby3ff3zcnyz7d2xsqls7zxmzig7bgzy2gfa24s3sa32jg";
})
(fetchpatch {
name = "ixset-typed-template-haskell-2.22.patch";
url = "https://github.com/well-typed/ixset-typed/commit/0d699386eab5c4f6aa53e4de41defb460acbbd99.patch";
sha256 = "04lbfvaww05czhnld674c9hm952f94xpicf08hby8xpksfj7rs41";
})
]
(
overrideCabal {
editedCabalFile = null;
revision = null;
} super.ixset-typed
);
# https://github.com/bos/snappy/issues/1
# https://github.com/bos/snappy/pull/10
snappy = dontCheck super.snappy;
# 2026-04-07: jailbreak for time 1.15
# https://github.com/mchav/snappy-hs/issues/2
snappy-hs = doJailbreak super.snappy-hs;
# https://github.com/joeyadams/haskell-stm-delay/issues/3
stm-delay = dontCheck super.stm-delay;
# Skip test that checks a race condition between stm and stm-queue
stm-queue = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"--skip"
"/Data.Queue/behaves faster than TQueue in its worst case/"
];
}) super.stm-queue;
# Missing module.
rematch = dontCheck super.rematch; # https://github.com/tcrayford/rematch/issues/5
# Package exists only to be example of documentation, yet it has restrictive
# "base" dependency.
haddock-cheatsheet = doJailbreak super.haddock-cheatsheet;
# This packages compiles 4+ hours on a fast machine. That's just unreasonable.
CHXHtml = dontDistribute super.CHXHtml;
# Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x.
test-framework = dontCheck super.test-framework;
# Test suite won't compile against tasty-hunit 0.10.x.
binary-parsers = dontCheck super.binary-parsers;
# https://github.com/ndmitchell/shake/issues/804
shake = dontCheck super.shake;
# Missing file in source distribution:
# - https://github.com/karun012/doctest-discover/issues/22
# - https://github.com/karun012/doctest-discover/issues/23
#
# When these are fixed the following needs to be enabled again:
#
# # Depends on itself for testing
# doctest-discover = addBuildTool super.doctest-discover
# (if pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform
# then self.buildHaskellPackages.doctest-discover
# else dontCheck super.doctest-discover);
doctest-discover = dontCheck super.doctest-discover;
# Known issue with nondeterministic test suite failure
# https://github.com/nomeata/tasty-expected-failure/issues/21
tasty-expected-failure = dontCheck super.tasty-expected-failure;
# https://github.com/kkardzis/curlhs/issues/6
curlhs = dontCheck super.curlhs;
# curl 7.87.0 introduces a preprocessor typechecker of sorts which fails on
# incorrect usages of curl_easy_getopt and similar functions. Presumably
# because the wrappers in curlc.c don't use static values for the different
# arguments to curl_easy_getinfo, it complains and needs to be disabled.
# https://github.com/GaloisInc/curl/issues/28
curl = appendConfigureFlags [
"--ghc-option=-DCURL_DISABLE_TYPECHECK"
] super.curl;
# 2026-02-19: too strict bounds on bytestring (<0.11) and text (<2)
# https://github.com/theam/require/pull/31
require = doJailbreak super.require;
# 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2
jwt = dontCheck super.jwt;
# 2024-03-10: Getting the test suite to run requires a correctly crafted GHC_ENVIRONMENT variable.
graphql-client = dontCheck super.graphql-client;
# Make elisp files available at a location where people expect it.
hindent = (
overrideCabal (drv: {
# We cannot easily byte-compile these files, unfortunately, because they
# depend on a new version of haskell-mode that we don't have yet.
postInstall = ''
local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
mkdir -p $data/share/emacs
ln -s $lispdir $data/share/emacs/site-lisp
'';
}) super.hindent
);
# https://github.com/basvandijk/concurrent-extra/issues/12
concurrent-extra = dontCheck super.concurrent-extra;
# Too strict bounds on bytestring (<0.12) on the test suite
# https://github.com/emilypi/Base32/issues/24
base32 = doJailbreak super.base32;
# * The standard libraries are compiled separately.
# * We need a few patches from master to fix compilation with
# updated dependencies which can be
# removed when the next idris release comes around.
idris = lib.pipe super.idris [
dontCheck
doJailbreak
(appendPatch (fetchpatch {
name = "idris-bumps.patch";
url = "https://github.com/idris-lang/Idris-dev/compare/c99bc9e4af4ea32d2172f873152b76122ee4ee14...cf78f0fb337d50f4f0dba235b6bbe67030f1ff47.patch";
hash = "sha256-RCMIRHIAK1PCm4B7v+5gXNd2buHXIqyAxei4bU8+eCk=";
}))
(self.generateOptparseApplicativeCompletions [ "idris" ])
];
# https://hydra.nixos.org/build/42769611/nixlog/1/raw
# note: the library is unmaintained, no upstream issue
dataenc = doJailbreak super.dataenc;
# Test suite occasionally runs for 1+ days on Hydra.
distributed-process-tests = dontCheck super.distributed-process-tests;
# https://github.com/mulby/diff-parse/issues/9
diff-parse = doJailbreak super.diff-parse;
# No upstream issue tracker
hspec-expectations-pretty-diff = dontCheck super.hspec-expectations-pretty-diff;
# The tests spuriously fail
libmpd = dontCheck super.libmpd;
# https://github.com/xu-hao/namespace/issues/1
namespace = doJailbreak super.namespace;
# https://github.com/danidiaz/streaming-eversion/issues/1
streaming-eversion = dontCheck super.streaming-eversion;
# https://github.com/danidiaz/tailfile-hinotify/issues/2
tailfile-hinotify = doJailbreak (dontCheck super.tailfile-hinotify);
# 2025-09-01: Merged patch from upstream to fix bounds:
optics = appendPatch (fetchpatch {
name = "optics-fix-inspection-testing-bound";
url = "https://github.com/well-typed/optics/commit/d16b1ac5476c89cc94fb108fe1be268791affca6.patch";
sha256 = "sha256-w0L/EXSWRQkCkFnvXYel0BNgQQhxn6zATkD3GZS5gz8=";
relative = "optics";
}) super.optics;
# 2025-02-10: Too strict bounds on text < 2.1
digestive-functors-blaze = doJailbreak super.digestive-functors-blaze;
# Too strict bound on QuickCheck <2.15
hgmp = doJailbreak super.hgmp;
# Z3 removed aliases for boolean types in 4.12
inherit
(
let
fixZ3 = appendConfigureFlags [
"--hsc2hs-option=-DZ3_Bool=bool"
"--hsc2hs-option=-DZ3_TRUE=true"
"--hsc2hs-option=-DZ3_FALSE=false"
];
in
{
z3 = fixZ3 super.z3;
hz3 = fixZ3 super.hz3;
}
)
z3
hz3
;
# test suite requires git and does a bunch of git operations
restless-git = dontCheck super.restless-git;
# Work around https://github.com/haskell/c2hs/issues/192.
c2hs = dontCheck super.c2hs;
# Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274
tmp-postgres = dontCheck super.tmp-postgres;
# Needs QuickCheck <2.10, which we don't have.
edit-distance = doJailbreak super.edit-distance;
# https://github.com/alphaHeavy/protobuf/issues/34
protobuf = dontCheck super.protobuf;
# The test suite does not know how to find the 'alex' binary.
alex = overrideCabal (drv: {
testSystemDepends = (drv.testSystemDepends or [ ]) ++ [ pkgs.which ];
preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
}) super.alex;
# Generate cli completions for dhall.
dhall = self.generateOptparseApplicativeCompletions [ "dhall" ] super.dhall;
# 2025-01-27: allow aeson >= 2.2, 9.8 versions of text and bytestring
dhall-json = self.generateOptparseApplicativeCompletions [ "dhall-to-json" "dhall-to-yaml" ] (
doJailbreak super.dhall-json
);
dhall-nix = self.generateOptparseApplicativeCompletions [ "dhall-to-nix" ] super.dhall-nix;
# 2025-02-10: jailbreak due to aeson < 2.2, hnix < 0.17, transformers < 0.6, turtle < 1.6
dhall-nixpkgs = self.generateOptparseApplicativeCompletions [ "dhall-to-nixpkgs" ] (
doJailbreak super.dhall-nixpkgs
);
dhall-yaml = self.generateOptparseApplicativeCompletions [ "dhall-to-yaml-ng" "yaml-to-dhall" ] (
doJailbreak super.dhall-yaml
); # bytestring <0.12, text<2.1
# 2025-02-14: see also https://github.com/dhall-lang/dhall-haskell/issues/2638
dhall-bash = doJailbreak super.dhall-bash; # bytestring <0.12, text <2.1
# musl fixes
# dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time;
# hslua has tests that break when using musl.
# https://github.com/hslua/hslua/issues/106
hslua-core =
if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.hslua-core else super.hslua-core;
# The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate.
prettyprinter = dontCheck super.prettyprinter;
hpc-codecov = overrideCabal (drv: {
# Work around test suite race condition due to tasty >= 1.5.4
# https://github.com/8c6794b6/hpc-codecov/issues/52
testFlags = drv.testFlags or [ ] ++ [ "-j1" ];
}) super.hpc-codecov;
# sexpr is old, broken and has no issue-tracker. Let's fix it the best we can.
sexpr = appendPatch ./patches/sexpr-0.2.1.patch (
overrideCabal (drv: {
isExecutable = false;
libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.QuickCheck ];
}) super.sexpr
);
# TODO(Profpatsch): factor out local nix store setup from
# lib/tests/release.nix and use that for the tests of libnix
# libnix = overrideCabal (old: {
# testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ];
# }) super.libnix;
libnix = dontCheck super.libnix;
# dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox.
xmobar = dontCheck super.xmobar;
# 2025-02-10: Too strict bounds on aeson < 1.5
json-alt = doJailbreak super.json-alt;
gargoyle-postgresql-nix = addBuildTool pkgs.postgresql super.gargoyle-postgresql-nix;
# PortMidi needs an environment variable to have ALSA find its plugins:
# https://github.com/NixOS/nixpkgs/issues/6860
PortMidi = overrideCabal (drv: {
patches = (drv.patches or [ ]) ++ [
./patches/portmidi-alsa-plugins.patch
# Fixes compilation with GCC15 which defaults to C23
# https://github.com/PortMidi/PortMidi-haskell/pull/24
(pkgs.fetchpatch {
name = "PortMidi-C23.patch";
url = "https://github.com/PortMidi/PortMidi-haskell/commit/24b6ce1c77137b055ae57a99080d5f1616490197.patch";
sha256 = "sha256-PqnWA/DMW00Gtfa4YDV6iC/MXwQ3gFsNESbx+daw4C4=";
})
];
postPatch = (drv.postPatch or "") + ''
substituteInPlace portmidi/pm_linux/pmlinuxalsa.c \
--replace @alsa_plugin_dir@ "${pkgs.alsa-plugins}/lib/alsa-lib"
'';
}) super.PortMidi;
scat = overrideCabal (drv: {
patches = [
# Fix build with base >= 4.11 (https://github.com/redelmann/scat/pull/6)
(fetchpatch {
url = "https://github.com/redelmann/scat/commit/429f22944b7634b8789cb3805292bcc2b23e3e9f.diff";
hash = "sha256-FLr1KfBaSYzI6MiZIBY1CkgAb5sThvvgjrSAN8EV0h4=";
})
# Fix build with vector >= 0.13, mtl >= 2.3 (https://github.com/redelmann/scat/pull/8)
(fetchpatch {
url = "https://github.com/redelmann/scat/compare/e8e064f7e6a152fe25a6ccd743573a16974239d0..c6a3636548d628f32d8edc73a333188ce24141a7.patch";
hash = "sha256-BU4MUn/TnZHpZBlX1vDHE7QZva5yhlLTb8zwpx7UScI";
})
];
}) super.scat;
# Fix build with attr-2.4.48 (see #53716)
xattr = appendPatch ./patches/xattr-fix-build.patch super.xattr;
# Requires API keys to run tests
openai-hs = dontCheck super.openai-hs;
# Has tasty < 1.2 requirement, but works just fine with 1.2
temporary-resourcet = doJailbreak super.temporary-resourcet;
# Test suite doesn't work with current QuickCheck
# https://github.com/pruvisto/heap/issues/11
heap = dontCheck super.heap;
# https://github.com/erikd/hjsmin/issues/32
hjsmin = dontCheck super.hjsmin;
# Remove for hail > 0.2.0.0
hail = doJailbreak super.hail;
# https://github.com/kazu-yamamoto/dns/issues/150
dns = dontCheck super.dns;
# it wants to build a statically linked binary by default
hledger-flow = overrideCabal (drv: {
postPatch = (drv.postPatch or "") + ''
substituteInPlace hledger-flow.cabal --replace "-static" ""
'';
}) super.hledger-flow;
# Chart-tests needs and compiles some modules from Chart itself
Chart-tests = overrideCabal (old: {
# 2025-02-13: Too strict bounds on lens < 5.3 and vector < 0.13
jailbreak = true;
preCheck = old.preCheck or "" + ''
tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src}
'';
}) (addExtraLibrary self.QuickCheck super.Chart-tests);
# 2026-01-17: too strict bounds on QuickCheck < 2.15
# https://github.com/hasufell/lzma-static/pull/15
xz = doJailbreak super.xz;
ghcup =
lib.throwIf pkgs.config.allowAliases
"ghcup cannot be used to install the haskell tool chain on NixOS because there is no compatible bindist. Please install ghc etc. via Nix. On non-NixOS systems you can use the ghcup shell installer"
super.ghcup;
# This breaks because of version bounds, but compiles and runs fine.
# Last commit is 5 years ago, so we likely won't get upstream fixed soon.
# https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/
# Therefore we jailbreak it.
hakyll-contrib-hyphenation = doJailbreak super.hakyll-contrib-hyphenation;
# The test suite depends on an impure cabal-install installation in
# $HOME, which we don't have in our build sandbox.
cabal-install-parsers = dontCheck super.cabal-install-parsers;
# Test suite requires database
persistent-mysql = dontCheck super.persistent-mysql;
dhall-lsp-server = appendPatches [
# Add support for lsp >= 2.7
(pkgs.fetchpatch {
name = "dhall-lsp-server-lsp-2.7.patch";
url = "https://github.com/dhall-lang/dhall-haskell/commit/a621e1438df5865d966597e2e1b0bb37e8311447.patch";
sha256 = "sha256-7edxNIeIM/trl2SUXybvSzkscvr1kj5+tZF50IeTOgY=";
relative = "dhall-lsp-server";
})
# Fix build with text >= 2.1.2
(pkgs.fetchpatch {
name = "dhall-lsp-server-text-2.1.2.patch";
url = "https://github.com/dhall-lang/dhall-haskell/commit/9f2d4d44be643229784bfc502ab49184ec82bc05.patch";
hash = "sha256-cwNH5+7YY8UbA9zHhTRfVaqtIMowZGfFT5Kj+wSlapA=";
relative = "dhall-lsp-server";
})
] super.dhall-lsp-server;
# Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392
reflex-dom-core = lib.pipe super.reflex-dom-core [
doDistribute
dontCheck
unmarkBroken
];
# Unreleased patch fixing compilation with text >= 2.1.2
dom-parser =
appendPatches
[
(pkgs.fetchpatch {
name = "dom-parser-text-2.1.2.patch";
url = "https://github.com/typeable/dom-parser/commit/b8d9af75595072026a1706e94750dba55e65326b.patch";
hash = "sha256-c7ea0YCtXhv4u+pTuxcWoISa+yV2oEtxS/RmC6Bbx1M=";
})
]
(
overrideCabal {
revision = null;
editedCabalFile = null;
} super.dom-parser
);
# Requires jsaddle-webkit2gtk to build outside of pkgsCross.ghcjs
# which requires a version of libsoup that's marked as insecure
reflex-dom = dontDistribute super.reflex-dom;
reflex-localize-dom = dontDistribute super.reflex-localize-dom;
trasa-reflex = dontDistribute super.trasa-reflex;
# https://github.com/ghcjs/jsaddle/issues/151
jsaddle-webkit2gtk =
overrideCabal
(drv: {
postPatch = drv.postPatch or "" + ''
substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-gtk gi-gtk3
substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-javascriptcore gi-javascriptcore4
'';
})
(
super.jsaddle-webkit2gtk.override {
gi-gtk = self.gi-gtk3;
gi-javascriptcore = self.gi-javascriptcore4;
}
);
# https://github.com/danfran/cabal-macosx/pull/19
cabal-macosx = appendPatch (fetchpatch {
name = "support-cabal-3.14.patch";
url = "https://github.com/danfran/cabal-macosx/commit/24ef850a4c743e525433a6f9eaa3f8924408db10.patch";
excludes = [ ".gitignore" ];
sha256 = "sha256-ORonk31yStWH0I83B4hCpnap7KK4o49UVrwdrZjCRaU=";
}) super.cabal-macosx;
# 2020-06-24: Jailbreaking because of restrictive test dep bounds
# Upstream issue: https://github.com/kowainik/trial/issues/62
trial = doJailbreak super.trial;
# 2024-03-19: Fix for mtl >= 2.3
pattern-arrows = lib.pipe super.pattern-arrows [
doJailbreak
(appendPatches [ ./patches/pattern-arrows-add-fix-import.patch ])
];
# posix-waitpid - Fix CPid constructor import and version bounds
# Broken since 2011 (GHC 7.4+), marked broken in nixpkgs since 2016
# The original package has no repo however there's a fork with the
# fix at https://github.com/GaloisInc/posix-waitpid
posix-waitpid = lib.pipe super.posix-waitpid [
(overrideCabal (drv: {
postPatch = ''
substituteInPlace System/Posix/Waitpid.hs \
--replace 'import System.Posix.Types (CPid)' \
'import System.Posix.Types (CPid(..))'
'';
}))
doJailbreak
];
# 2024-03-19: Fix for mtl >= 2.3
cheapskate = lib.pipe super.cheapskate [
doJailbreak
(appendPatches [ ./patches/cheapskate-mtl-2-3-support.patch ])
];
# 2020-06-24: Tests are broken in hackage distribution.
# See: https://github.com/robstewart57/rdf4h/issues/39
rdf4h = dontCheck super.rdf4h;
svgcairo = overrideCabal (drv: {
patches = drv.patches or [ ] ++ [
# Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in.
(fetchpatch {
url = "https://github.com/gtk2hs/svgcairo/commit/348c60b99c284557a522baaf47db69322a0a8b67.patch";
sha256 = "0akhq6klmykvqd5wsbdfnnl309f80ds19zgq06sh1mmggi54dnf3";
})
# Remove when https://github.com/gtk2hs/svgcairo/pull/13 goes in.
(fetchpatch {
url = "https://github.com/dalpd/svgcairo/commit/d1e0d7ae04c1edca83d5b782e464524cdda6ae85.patch";
sha256 = "1pq9ld9z67zsxj8vqjf82qwckcp69lvvnrjb7wsyb5jc6jaj3q0a";
})
];
editedCabalFile = null;
revision = null;
}) super.svgcairo;
# Support GHC >= 9.12.3 || >= 9.14.1
# Patch from https://github.com/gtk2hs/gtk2hs/pull/349
glib = appendPatches [ ./patches/glib-support-rts-at-least-9.12.3-and-9.14.patch ] super.glib;
# Too strict upper bound on tasty-hedgehog (<1.5)
# https://github.com/typeclasses/ascii-predicates/pull/1
ascii-predicates = doJailbreak super.ascii-predicates;
# Fails with encoding problems, likely needs locale data.
# Test can be executed by adding which to testToolDepends and
# $PWD/dist/build/haskeline-examples-Test to $PATH.
haskeline_0_8_4_1 = doDistribute (dontCheck super.haskeline_0_8_4_1);
# Test suite fails to compile https://github.com/agrafix/Spock/issues/177
Spock = dontCheck super.Spock;
Spock-core = appendPatches [
(fetchpatch {
url = "https://github.com/agrafix/Spock/commit/d0b51fa60a83bfa5c1b5fc8fced18001e7321701.patch";
sha256 = "sha256-l9voiczOOdYVBP/BNEUvqARb21t0Rp2kpsNbRFUWSLg=";
stripLen = 1;
})
] (doJailbreak super.Spock-core);
hcoord = overrideCabal (drv: {
# Remove when https://github.com/danfran/hcoord/pull/8 is merged.
patches = [
(fetchpatch {
url = "https://github.com/danfran/hcoord/pull/8/commits/762738b9e4284139f5c21f553667a9975bad688e.patch";
sha256 = "03r4jg9a6xh7w3jz3g4bs7ff35wa4rrmjgcggq51y0jc1sjqvhyz";
})
];
# Remove when https://github.com/danfran/hcoord/issues/9 is closed.
doCheck = false;
}) super.hcoord;
# Break infinite recursion via tasty
temporary = dontCheck super.temporary;
# Break infinite recursion via doctest-lib
utility-ht = dontCheck super.utility-ht;
# Break infinite recursion via optparse-applicative (alternatively, dontCheck syb)
prettyprinter-ansi-terminal = dontCheck super.prettyprinter-ansi-terminal;
# Released version prohibits QuickCheck >= 2.15 at the moment
optparse-applicative = appendPatches [
(pkgs.fetchpatch2 {
name = "optparse-applicative-0.18.1-allow-QuickCheck-2.15.patch";
url = "https://github.com/pcapriotti/optparse-applicative/commit/2c2a39ed53e6339d8dc717efeb7d44f4c2b69cab.patch";
hash = "sha256-198TfBUR3ygPpvKPvtH69UmbMmoRagmzr9UURPr6Kj4=";
})
] super.optparse-applicative;
# chell-quickcheck doesn't work with QuickCheck >= 2.15 with no known fix yet
# https://github.com/typeclasses/chell/issues/5
system-filepath = dontCheck super.system-filepath;
gnuidn = dontCheck super.gnuidn;
# Tests rely on `Int` being 64-bit: https://github.com/hspec/hspec/issues/431.
# Also, we need QuickCheck-2.14.x to build the test suite, which isn't easy in LTS-16.x.
# So let's not go there and just disable the tests altogether.
hspec-core = dontCheck super.hspec-core;
update-nix-fetchgit =
let
# Deps are required during the build for testing and also during execution,
# so add them to build input and also wrap the resulting binary so they're in
# PATH.
deps = [
pkgs.git
pkgs.nix-prefetch-git
];
in
lib.pipe super.update-nix-fetchgit [
# 2023-06-26: Test failure: https://hydra.nixos.org/build/225081865
dontCheck
(self.generateOptparseApplicativeCompletions [ "update-nix-fetchgit" ])
(overrideCabal (drv: {
buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ];
postInstall = drv.postInstall or "" + ''
wrapProgram "$out/bin/update-nix-fetchgit" --prefix 'PATH' ':' "${lib.makeBinPath deps}"
'';
}))
# pkgs.nix is not added to the wrapper since we can resonably expect it to be installed
# and we don't know which implementation the eventual user prefers
(addTestToolDepends (deps ++ [ pkgs.nix ]))
# Patch for hnix compat.
(appendPatches [
(fetchpatch {
url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/dfa34f9823e282aa8c5a1b8bc95ad8def0e8d455.patch";
sha256 = "sha256-yBjn1gVihVTlLewKgJc2I9gEj8ViNBAmw0bcsb5rh1A=";
excludes = [ "cabal.project" ];
})
# Fix for GHC >= 9.8
(fetchpatch {
name = "update-nix-fetchgit-base-4.19.patch";
url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/384d2e259738abf94f5a20717b12648996cf24e2.patch";
sha256 = "11489rpxrrz98f7d3j9mz6npgfg0zp005pghxv9c86rkyg5b10d5";
})
])
];
# The tests for semver-range need to be updated for the MonadFail change in
# ghc-8.8:
# https://github.com/adnelson/semver-range/issues/15
semver-range = dontCheck super.semver-range;
# 2024-03-02: vty <5.39 - https://github.com/reflex-frp/reflex-ghci/pull/33
reflex-ghci = warnAfterVersion "0.2.0.1" (doJailbreak super.reflex-ghci);
# 2024-09-18: transformers <0.5 https://github.com/reflex-frp/reflex-gloss/issues/6
reflex-gloss = warnAfterVersion "0.2" (doJailbreak super.reflex-gloss);
# Due to tests restricting base in 0.8.0.0 release
http-media = doJailbreak super.http-media;
# 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
hinit = doJailbreak (self.generateOptparseApplicativeCompletions [ "hi" ] super.hinit);
# 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
blas-hs = dontCheck super.blas-hs;
# Strange doctest problems
# https://github.com/biocad/servant-openapi3/issues/30
servant-openapi3 = dontCheck super.servant-openapi3;
# Disable test cases that were broken by insignificant changes in icu 76
# https://github.com/haskell/text-icu/issues/108
text-icu = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-t"
"!Test cases"
];
}) super.text-icu;
hercules-ci-agent = self.generateOptparseApplicativeCompletions [
"hercules-ci-agent"
] super.hercules-ci-agent;
hercules-ci-cli = lib.pipe super.hercules-ci-cli [
unmarkBroken
(overrideCabal (drv: {
hydraPlatforms = super.hercules-ci-cli.meta.platforms;
}))
# See hercules-ci-optparse-applicative in non-hackage-packages.nix.
(addBuildDepend super.hercules-ci-optparse-applicative)
(self.generateOptparseApplicativeCompletions [ "hci" ])
];
# https://github.com/k0001/pipes-aeson/pull/21
pipes-aeson = appendPatch (fetchpatch {
url = "https://github.com/k0001/pipes-aeson/commit/08c25865ef557b41d7e4a783f52e655d2a193e18.patch";
relative = "pipes-aeson";
sha256 = "sha256-kFV6CcwKdMq+qSgyc+eIApnaycq5A++pEEVr2A9xvts=";
}) super.pipes-aeson;
moto-postgresql = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
(fetchpatch {
name = "moto-postgresql-monadfail.patch";
url = "https://gitlab.com/k0001/moto/-/commit/09cc1c11d703c25f6e81325be6482dc7ec6cbf58.patch";
relative = "moto-postgresql";
sha256 = "sha256-f2JVX9VveShCeV+T41RQgacpUoh1izfyHlE6VlErkZM=";
})
] super.moto-postgresql;
moto = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
(fetchpatch {
name = "moto-ghc-9.0.patch";
url = "https://gitlab.com/k0001/moto/-/commit/5b6f015a1271765005f03762f1f1aaed3a3198ed.patch";
relative = "moto";
sha256 = "sha256-RMa9tk+2ip3Ks73UFv9Ea9GEnElRtzIjdpld1Fx+dno=";
})
] super.moto;
# c2hs/language-c don't support C23 [[nodiscard]] yet: https://github.com/visq/language-c/issues/107.
# To work around this, we tell the preprocessor of GCC 15 to use an older standard (the GCC 14 default).
avif =
if pkgs.stdenv.hasCC && pkgs.stdenv.cc.isGNU then
appendConfigureFlags [ "--c2hs-options=--cppopts=-std=gnu17" ] super.avif
else
super.avif;
# Readline uses Distribution.Simple from Cabal 2, in a way that is not
# compatible with Cabal 3. No upstream repository found so far
readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super.readline;
# DerivingVia is not allowed in safe Haskell
# https://github.com/strake/util.hs/issues/1
util = appendConfigureFlags [
"--ghc-option=-fno-safe-haskell"
"--haddock-option=--optghc=-fno-safe-haskell"
] (doJailbreak super.util); # unmaintained
# Test suite fails, upstream not reachable for simple fix (not responsive on github)
vivid-supercollider = dontCheck super.vivid-supercollider;
# Test suite `readme` does not compile.
# https://github.com/haskell-party/feed/issues/77
# `readme-doctests` are also broken (can't find a variety of imports)
feed = overrideCabal {
buildTarget = "tests";
testTargets = [ "tests" ];
jailbreak = true;
} super.feed;
# 2026-04-14: Apache Iceberg not included in pkgs.duckdb and not packaged
beam-duckdb = overrideCabal (drv: {
testFlags = (drv.testFlags or [ ]) ++ [
"--pattern"
"!/Iceberg/"
];
}) super.beam-duckdb;
# 2026-03-25: one test fails
# https://github.com/Tritlo/duckdb-haskell/issues/8
# TODO: remove after PR https://github.com/Tritlo/duckdb-haskell/pull/9 is merged
duckdb-ffi = overrideCabal (drv: {
testFlags = (drv.testFlags or [ ]) ++ [
"--pattern"
"!/bind every supported value type/"
];
}) super.duckdb-ffi;
spacecookie = overrideCabal (old: {
buildTools = (old.buildTools or [ ]) ++ [ pkgs.buildPackages.installShellFiles ];
# let testsuite discover the resulting binary
preCheck = ''
export SPACECOOKIE_TEST_BIN=./dist/build/spacecookie/spacecookie
''
+ (old.preCheck or "");
# install man pages shipped in the sdist
postInstall = ''
installManPage docs/man/*
''
+ (old.postInstall or "");
}) super.spacecookie;
# Patch and jailbreak can be removed at next release, chatter > 0.9.1.0
# * Remove dependency on regex-tdfa-text
# * Jailbreak as bounds on cereal are too strict
# * Disable test suite which doesn't compile
# https://github.com/creswick/chatter/issues/38
chatter = appendPatch (fetchpatch {
url = "https://github.com/creswick/chatter/commit/e8c15a848130d7d27b8eb5e73e8a0db1366b2e62.patch";
sha256 = "1dzak8d12h54vss5fxnrclygz0fz9ygbqvxd5aifz5n3vrwwpj3g";
}) (dontCheck (doJailbreak (super.chatter.override { regex-tdfa-text = null; })));
# test suite doesn't compile anymore due to changed hunit/tasty APIs
fullstop = dontCheck super.fullstop;
# * Too strict version bound on vector-builder
# https://github.com/noinia/hgeometry/commit/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a#commitcomment-49282301
hgeometry-combinatorial = doJailbreak super.hgeometry-combinatorial;
cli-git = addBuildTool pkgs.git super.cli-git;
cli-nix = addBuildTools [
# Required due to https://github.com/obsidiansystems/cli-nix/issues/11
pkgs.nix
pkgs.nix-prefetch-git
] super.cli-nix;
# list `modbus` in librarySystemDepends, correct to `libmodbus`
libmodbus = doJailbreak (addExtraLibrary pkgs.libmodbus super.libmodbus);
# 2025-02-11: Too strict bounds on base < 4.19, bytestring < 0.12, tasty < 1.5, tasty-quickcheck < 0.11
blake2 = doJailbreak super.blake2;
# 2021-04-09: too strict time bound
# PR pending https://github.com/zohl/cereal-time/pull/2
cereal-time = doJailbreak super.cereal-time;
# 2021-04-16: too strict bounds on QuickCheck and tasty
# https://github.com/hasufell/lzma-static/issues/1
lzma-static = doJailbreak super.lzma-static;
# Too strict version bounds on base:
# https://github.com/obsidiansystems/database-id/issues/1
database-id-class = doJailbreak super.database-id-class;
# Allow granite >= 0.4
dataframe = lib.pipe super.dataframe [
(warnAfterVersion "0.5.0.1")
doJailbreak
];
# TODO: when (likely in 25.x) Stackage bumps random to 1.3, review
dataframe-persistent = lib.pipe super.dataframe-persistent [
doJailbreak # 2026-01-23: too strict bounds on dataframe >= 0.4
dontCheck # 2026-01-23: test uses dataframe function not exported in 0.3.3.6
];
# 2026-01-23: too strict bounds on random >= 1.3
# TODO: when (likely in 25.x) Stackage bumps random to 1.3, unpin
ihaskell-dataframe = doJailbreak super.ihaskell-dataframe;
# Too strict version bounds on base
# https://github.com/gibiansky/IHaskell/issues/1217
ihaskell-display = doJailbreak super.ihaskell-display;
ihaskell-basic = doJailbreak super.ihaskell-basic;
# Tests need to lookup target triple x86_64-unknown-linux
# https://github.com/llvm-hs/llvm-hs/issues/334
llvm-hs = dontCheckIf (pkgs.stdenv.targetPlatform.system != "x86_64-linux") super.llvm-hs;
# Fix build with bytestring >= 0.11 (GHC 9.2)
# https://github.com/llvm-hs/llvm-hs/pull/389
llvm-hs-pure =
appendPatches
[
(fetchpatch {
name = "llvm-hs-pure-bytestring-0.11.patch";
url = "https://github.com/llvm-hs/llvm-hs/commit/fe8fd556e8d2cc028f61d4d7b4b6bf18c456d090.patch";
sha256 = "sha256-1d4wQg6JEJL3GwmXQpvbW7VOY5DwjUPmIsLEEur0Kps=";
relative = "llvm-hs-pure";
excludes = [ "**/Triple.hs" ]; # doesn't exist in 9.0.0
})
]
(
overrideCabal {
# Hackage Revision prevents patch from applying. Revision 1 does not allow
# bytestring-0.11.4 which is bundled with 9.2.6.
editedCabalFile = null;
revision = null;
} super.llvm-hs-pure
);
# 2025-02-11: Too strict bounds on tasty-quickcheck < 0.11
exact-pi = doJailbreak super.exact-pi;
# Too strict bounds on dimensional
# https://github.com/enomsg/science-constants-dimensional/pull/1
science-constants-dimensional = doJailbreak super.science-constants-dimensional;
# Tests are flaky on busy machines, upstream doesn't intend to fix
# https://github.com/merijn/paramtree/issues/4
paramtree = dontCheck super.paramtree;
# Flaky test suites
ticker = dontCheck super.ticker;
powerqueue-distributed = dontCheck super.powerqueue-distributed;
job = dontCheck super.job;
scheduler = dontCheck super.scheduler;
# Flaky test suite
# https://github.com/minimapletinytools/linear-tests/issues/1
linear-tests = dontCheck super.linear-tests;
# 2023-04-09: haskell-ci needs Cabal-syntax 3.10
# 2024-03-21: pins specific version of ShellCheck
# 2025-03-10: jailbreak, https://github.com/haskell-CI/haskell-ci/issues/771
haskell-ci = doJailbreak (
super.haskell-ci.overrideScope (
self: super: {
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
ShellCheck = self.ShellCheck_0_9_0;
}
)
);
# ShellCheck < 0.10.0 needs to be adjusted for changes in fgl >= 5.8
# https://github.com/koalaman/shellcheck/issues/2677
ShellCheck_0_9_0 = doJailbreak (
appendPatches [
(fetchpatch {
name = "shellcheck-fgl-5.8.1.1.patch";
url = "https://github.com/koalaman/shellcheck/commit/c05380d518056189412e12128a8906b8ca6f6717.patch";
sha256 = "0gbx46x1a2sh5mvgpqxlx9xkqcw4wblpbgqdkqccxdzf7vy50xhm";
})
] super.ShellCheck_0_9_0
);
# Too strict bound on hspec (<2.11)
utf8-light = doJailbreak super.utf8-light;
# BSON defaults to requiring network instead of network-bsd which is
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26
bson = appendConfigureFlag "-f-_old_network" (
super.bson.override {
network = self.network-bsd;
}
);
# 2021-05-22: Tests fail sometimes (even consistently on hydra)
# when running a fs-related test with >= 12 jobs. To work around
# this, run tests with only a single job.
# https://github.com/vmchale/libarchive/issues/20
libarchive = overrideCabal {
testFlags = [ "-j1" ];
} super.libarchive;
# https://github.com/plow-technologies/hspec-golden-aeson/issues/17
hspec-golden-aeson = dontCheck super.hspec-golden-aeson;
# To strict bound on hspec
# https://github.com/dagit/zenc/issues/5
zenc = doJailbreak super.zenc;
# https://github.com/ajscholl/basic-cpuid/pull/1
basic-cpuid = appendPatch (fetchpatch {
url = "https://github.com/ajscholl/basic-cpuid/commit/2f2bd7a7b53103fb0cf26883f094db9d7659887c.patch";
sha256 = "0l15ccfdys100jf50s9rr4p0d0ikn53bkh7a9qlk9i0y0z5jc6x1";
}) super.basic-cpuid;
# 2025-09-03 jailbreak for base >= 4.20
# https://github.com/brandonhamilton/ilist/issues/17
ilist = lib.pipe super.ilist [
(warnAfterVersion "0.4.0.1")
doJailbreak
];
# 2025-09-18: ilist >=0.3.1 && <0.4, optparse-applicative >=0.19.0 && <0.20
# https://github.com/hadolint/hadolint/issues/1127
hadolint = doJailbreak super.hadolint;
# Too strict bounds on
# QuickCheck (<2.15): https://github.com/kapralVV/Unique/issues/12
# hashable (<1.5): https://github.com/kapralVV/Unique/issues/11#issuecomment-3088832168
Unique = doJailbreak super.Unique;
# Too strict bound on tasty-quickcheck (<0.11)
# https://github.com/haskell-unordered-containers/hashable/issues/321
hashable_1_4_7_0 = doDistribute (doJailbreak super.hashable_1_4_7_0);
# https://github.com/AndrewRademacher/aeson-casing/issues/8
aeson-casing = warnAfterVersion "0.2.0.0" (
overrideCabal (drv: {
testFlags = [
"-p"
"! /encode train/"
]
++ drv.testFlags or [ ];
}) super.aeson-casing
);
drunken-bishop = doJailbreak super.drunken-bishop;
# https://github.com/minio/minio-hs/issues/165
# https://github.com/minio/minio-hs/pull/191 Use crypton-connection instead of unmaintained connection
minio-hs = overrideCabal (drv: {
testFlags = [
"-p"
"!/Test mkSelectRequest/"
]
++ drv.testFlags or [ ];
patches = drv.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "use-crypton-connection.patch";
url = "https://github.com/minio/minio-hs/commit/786cf1881f0b62b7539e63547e76afc3c1ade36a.patch";
sha256 = "sha256-zw0/jhKzShpqV1sUyxWTl73sQOzm6kA/yQOZ9n0L1Ag";
})
(pkgs.fetchpatch {
name = "compatibility-with-crypton-connection-0-4-0.patch";
url = "https://github.com/minio/minio-hs/commit/e2169892a5fea444aaf9e551243da811003d3188.patch";
sha256 = "sha256-hWphiArv7gZWiDewLHDeU4RASGOE9Z1liahTmAGQIgQ=";
})
];
}) (super.minio-hs.override { connection = self.crypton-connection; });
fgl-arbitrary = doJailbreak super.fgl-arbitrary;
# raaz-0.3 onwards uses backpack and it does not play nicely with
# parallel builds using -j
#
# See: https://gitlab.haskell.org/ghc/ghc/-/issues/17188
#
# Overwrite the build cores
raaz = disableParallelBuilding super.raaz;
# Test suite uses SHA as a point of comparison which doesn't
# succeeds its own test suite on 32bit:
# https://github.com/GaloisInc/SHA/issues/16
cryptohash-sha256 =
if pkgs.stdenv.hostPlatform.is32bit then
dontCheck super.cryptohash-sha256
else
super.cryptohash-sha256;
# Fixes compilation with GHC 9.0 and above
# https://hub.darcs.net/shelarcy/regex-compat-tdfa/issue/3
regex-compat-tdfa =
appendPatches
[
./patches/regex-compat-tdfa-ghc-9.0.patch
]
(
overrideCabal {
# Revision introduces bound base < 4.15
revision = null;
editedCabalFile = null;
} super.regex-compat-tdfa
);
darcs = lib.pipe (super.darcs.override { fgl = null; }) [
(overrideCabal (drv: {
# fgl isn’t used; removing it avoids cross-compilation failures.
#
# See: https://hub.darcs.net/darcs/darcs-reviewed/patch/3a8e57ef9fed776f62a3538f8842b6593546e368
postPatch = (drv.postPatch or "") + ''
substituteInPlace darcs.cabal \
--replace-fail "fgl >= 5.5.2.3 && < 5.9," ""
'';
}))
(appendPatches [
# Cabal 3.12 support in Setup.hs
# https://hub.darcs.net/darcs/darcs-reviewed/patch/50d9b0b402a896c83aa7929a50a0e0449838600f
./patches/darcs-cabal-3.12.patch
# GHC 9.10 patch plus lifted constraints for hashable
# https://hub.darcs.net/darcs/darcs-reviewed/patch/32646b190e019de21a103e950c4eccdd66f7eadc
./patches/darcs-stackage-lts-23.patch
])
];
# 2025-02-11: Too strict bounds on hedgehog < 1.5, hspec-hedgehog < 0.2
validation-selective = doJailbreak super.validation-selective;
# Test suite isn't supposed to succeed yet, apparently…
# https://github.com/andrewufrank/uniform-error/blob/f40629ad119e90f8dae85e65e93d7eb149bddd53/test/Uniform/Error_test.hs#L124
# https://github.com/andrewufrank/uniform-error/issues/2
uniform-error = dontCheck super.uniform-error;
# https://github.com/andrewufrank/uniform-fileio/issues/2
uniform-fileio = dontCheck super.uniform-fileio;
# The shipped Setup.hs file is broken.
csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
# https://github.com/phadej/cabal-fmt/issues/98
cabal-fmt = doJailbreak super.cabal-fmt;
# Pick bound changes from development branch, same commit also adds support for Cabal >= 3.14
glirc = lib.pipe super.glirc [
(warnAfterVersion "2.41")
# Revisions only partially (?) include the changes we want
(overrideCabal {
revision = null;
editedCabalFile = null;
})
(appendPatch (
pkgs.fetchpatch {
name = "glirc-bounds-plus-cabal-3.14.patch";
url = "https://github.com/glguy/irc-core/commit/00ab04700e45f6f7f2ffe4ac992ca73505407516.patch";
hash = "sha256-XX6y3lR/a6ofcpkuqczC2A5IyHsAsRfAB+x4hdKu9+o=";
includes = [
"glirc.cabal"
"Setup.hs"
];
}
))
];
# Test failures on various archs
# https://github.com/kazu-yamamoto/crypton/issues/49
crypton = dontCheckIf (
pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian
) super.crypton;
# Test failures on at least ppc64
# https://github.com/kazu-yamamoto/crypton-certificate/issues/25
# Likely related to the issues in crypton
# https://github.com/kazu-yamamoto/crypton/issues/49
crypton-x509-validation = dontCheckIf (
pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian
) super.crypton-x509-validation;
crypton-x509-system = overrideCabal (drv: {
# Case sensitive when doing cross-compilation to windows
postPatch = drv.postPatch or "" + ''
substituteInPlace crypton-x509-system.cabal --replace-fail "Crypt32" "crypt32"
'';
}) super.crypton-x509-system;
# Likely fallout from the crypton issues
# exception: HandshakeFailed (Error_Protocol "bad PubKeyALG_Ed448 signature for ecdhparams" DecryptError)
tls = dontCheckIf (
pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian
) super.tls;
# Too strict bounds on text and tls
# https://github.com/barrucadu/irc-conduit/issues/54
# Use crypton-connection instead of connection
# https://github.com/barrucadu/irc-conduit/pull/60 https://github.com/barrucadu/irc-client/pull/101
irc-conduit =
appendPatch
(pkgs.fetchpatch {
url = "https://github.com/barrucadu/irc-conduit/pull/60/commits/58f6b5ee0c23a0615e43292dbbacf40636dcd7a6.patch";
hash = "sha256-d08tb9iL07mBWdlZ7PCfTLVFJLgcxeGVPzJ+jOej8io=";
})
(
doJailbreak (
super.irc-conduit.override {
connection = self.crypton-connection;
x509-validation = self.crypton-x509-validation;
}
)
);
irc-client =
appendPatch
(pkgs.fetchpatch {
url = "https://github.com/barrucadu/irc-client/pull/101/commits/0440b7e2ce943d960234c50957a55025771f567a.patch";
hash = "sha256-iZyZMrodgViXFCMH9y2wIJZRnjd6WhkqInAdykqTdkY=";
})
(
doJailbreak (
super.irc-client.override {
connection = self.crypton-connection;
x509 = self.crypton-x509;
x509-store = self.crypton-x509-store;
x509-validation = self.crypton-x509-validation;
}
)
);
# 2022-03-16: Upstream stopped updating bounds https://github.com/haskell-hvr/base-noprelude/pull/15
base-noprelude = doJailbreak super.base-noprelude;
# 2025-01-07: unreleased upstream supports hedgehog 1.5 but drifted quite a bit from hackage revisions so hard to patch
hw-hspec-hedgehog = doJailbreak super.hw-hspec-hedgehog;
# 2026-04-19: Too strict upper bound on doctest (excluding 0.24)
# https://github.com/haskell-works/hw-hedgehog/issues/51
hw-hedgehog = doJailbreak super.hw-hedgehog;
# https://github.com/haskell-works/hw-string-parse/issues/43
hw-string-parse = doJailbreak super.hw-string-parse;
# 2025-09-03: allow QuickCheck 2.15
# https://github.com/haskell-works/hw-prim/issues/150
hw-prim = lib.pipe super.hw-prim [
(warnAfterVersion "0.6.3.2")
doJailbreak
];
# too strict bounds on extra < 1.8
# https://github.com/georgefst/svgone/pull/3
svgone = doJailbreak super.svgone;
# 2026-01-06: unbreak and modernize to GHC 9.10.3
reanimate-svg = overrideCabal (drv: {
# patching doesn't actually move files, need to do manually
prePatch = ''
# Move tests marked good due to previous librsvg failures
for f in \
animate-elem-32-t.svg \
fonts-desc-02-t.svg \
shapes-ellipse-02-t.svg \
shapes-intro-01-t.svg \
styling-css-06-b.svg \
text-intro-05-t.svg \
; do
mv test/good/$f test/bad/$f
done
# Move tests previously marked bad but now fixed from new changes
for f in \
filters-displace-02-f.svg \
filters-gauss-01-b.svg \
masking-mask-01-b.svg \
painting-render-01-b.svg \
pservers-grad-04-b.svg \
pservers-grad-05-b.svg \
pservers-grad-07-b.svg \
pservers-grad-08-b.svg \
pservers-grad-09-b.svg \
pservers-grad-10-b.svg \
pservers-grad-11-b.svg \
pservers-grad-12-b.svg \
pservers-grad-14-b.svg \
pservers-grad-15-b.svg \
pservers-grad-16-b.svg \
pservers-grad-22-b.svg \
; do
mv test/bad/$f test/good/$f
done
'';
patches = (drv.patches or [ ]) ++ [
(pkgs.fetchpatch2 {
name = "modernize-to-ghc-9.10.3-and-regress-tests-wrt-librsvg";
url = "https://github.com/reanimate/reanimate-svg/commit/3f2fab8eb08b7f35b03f5fa17819e43e3879ea80.patch";
sha256 = "sha256-Em10QyAAiIwHId3CZuByKJ4Fv9W6MII4go5rychg07Y=";
})
];
}) super.reanimate-svg;
# 2026-01-06: modernize to GHC 9.10.3
reanimate = overrideCabal (drv: {
# file in Hackage but not on github, need to remove here
# test relies on hegometry but that was removed as a dependency
# https://github.com/reanimate/reanimate/commit/f58a00e
prePatch = drv.prePatch or "" + ''
rm -f examples/decompose.hs
'';
patches = (drv.patches or [ ]) ++ [
# variant of PR https://github.com/reanimate/reanimate/pull/317
(pkgs.fetchpatch2 {
name = "modernize-to-ghc-9.10.3";
url = "https://github.com/reanimate/reanimate/commit/273f48c2b82dcfa027481133a6a606e73a22461b.patch";
sha256 = "sha256-aibbIoc54I4Ibg6t2o8vykL8MqzmxLvayUNa8MiibEw=";
})
];
}) super.reanimate;
# Too strict bound on network (<3.2)
hookup =
appendPatches
[
(pkgs.fetchpatch {
name = "hookup-network-3.2.patch";
url = "https://github.com/glguy/irc-core/commit/a3ec982e729b0f77b2db336ec32c5e4b7283bed5.patch";
sha256 = "0qc1qszn3l69xlbpfv8vz9ld0q7sghfcbp0wjds81kwcpdpl4jgv";
stripLen = 1;
includes = [ "hookup.cabal" ];
})
]
(
overrideCabal {
revision = null;
editedCabalFile = null;
} super.hookup
);
basic-sop = appendPatch (fetchpatch {
# https://github.com/well-typed/basic-sop/pull/13
name = "increase-upper-bounds.patch";
url = "https://github.com/well-typed/basic-sop/commit/f1873487dd3e3955a82d6d9f37a6b164be36851f.patch";
sha256 = "sha256-uBH+LmiSO91diVe4uX75/DdWT2wuyqEL+XUlSHnJk5k=";
}) super.basic-sop;
# Unmaintained
records-sop = doJailbreak super.records-sop;
failure = appendPatch (fetchpatch {
# https://github.com/snoyberg/failure/pull/5
name = "switch-error-to-except";
url = "https://github.com/snoyberg/failure/commit/d46bebb5afdc17a0feb268bc86adb00b7edc4cc3.patch";
sha256 = "sha256-CDd/vvlRq1cldyH+qsJVNMiwViqKVSosr9A0ilv2gLM";
}) (doJailbreak super.failure);
# lucid-htmx has restrictive upper bounds on lucid and servant:
#
# Setup: Encountered missing or private dependencies:
# lucid >=2.9.12.1 && <=2.11, servant >=0.18.3 && <0.19
#
# Can be removed once
#
# > https://github.com/MonadicSystems/lucid-htmx/issues/6
#
# has been resolved.
lucid-htmx = doJailbreak super.lucid-htmx;
clash-prelude = dontCheck super.clash-prelude;
# 2025-08-06: Upper bounds on containers <0.7 and hedgehog < 1.5 too strict.
hermes-json = doJailbreak super.hermes-json;
# hexstring is not compatible with newer versions of base16-bytestring
# See https://github.com/solatis/haskell-hexstring/issues/3
hexstring = overrideCabal (old: {
# GitHub doesn't generate a patch with DOS line endings, so we
# need to convert the patched file to Unix line endings
prePatch = old.prePatch or "" + ''
sed -i -e 's/\r$//' src/Data/HexString.hs
'';
patches = old.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "fix-base16-bytestring-compat";
url = "https://github.com/solatis/haskell-hexstring/commit/4f0a27c64ecb4a767eeea2efebebfd7edba18de0.patch";
hash = "sha256-DHT566Ov1D++1VNjUor9xSeOsuSi2LPiIAGT55gqr8s=";
})
];
}) super.hexstring;
# 2026-02-19: GHC 9.10 increased simplifier ticks, need higher threshold
# https://github.com/lehins/hip/issues/56
hip = overrideCabal (drv: {
configureFlags = (drv.configureFlags or [ ]) ++ [
"--ghc-options=-fsimpl-tick-factor=200"
];
}) super.hip;
# Disabling doctests.
regex-tdfa = overrideCabal {
testTargets = [ "regex-tdfa-unittest" ];
} super.regex-tdfa;
# Test failure after libxcrypt migration, reported upstream at
# https://github.com/phadej/crypt-sha512/issues/13
crypt-sha512 = dontCheck (doJailbreak super.crypt-sha512);
# Latest release depends on crypton-connection ==0.3.2 https://github.com/ndmitchell/hoogle/issues/435
hoogle = overrideSrc {
version = "5.0.18.4-unstable-2024-07-28";
src = pkgs.fetchFromGitHub {
owner = "ndmitchell";
repo = "hoogle";
rev = "8149c93c40a542bf8f098047e1acbc347fc9f4e6";
hash = "sha256-k3UdmTq8c+iNF8inKM+oWf/NgJqRgUSFS3YwRKVg8Mw=";
};
} super.hoogle;
inherit
(
let
# We need to build purescript with these dependencies and thus also its reverse
# dependencies to avoid version mismatches in their dependency closure.
purescriptOverlay = self: super: {
# As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
# but it has a problem with parsing the `async` keyword. It doesn't allow
# `async` to be used as an object key:
# https://github.com/erikd/language-javascript/issues/131
language-javascript = self.language-javascript_0_7_0_0;
};
in
{
purescript = lib.pipe (super.purescript.overrideScope purescriptOverlay) [
# https://github.com/purescript/purescript/pull/4547
(appendPatches [
(pkgs.fetchpatch {
name = "purescript-import-fix";
url = "https://github.com/purescript/purescript/commit/c610ec18391139a67dc9dcf19233f57d2c5413f7.patch";
hash = "sha256-7s/ygzAFJ1ocZIj3OSd3TbsmGki46WViPIZOU1dfQFg=";
})
])
# PureScript uses nodejs to run tests, so the tests have been disabled
# for now. If someone is interested in figuring out how to get this
# working, it seems like it might be possible.
dontCheck
# The current version of purescript (0.14.5) has version bounds for LTS-17,
# but it compiles cleanly using deps in LTS-18 as well. This jailbreak can
# likely be removed when purescript-0.14.6 is released.
doJailbreak
# Generate shell completions
(self.generateOptparseApplicativeCompletions [ "purs" ])
];
purenix = lib.pipe (super.purenix.overrideScope purescriptOverlay) [
(appendPatches [
# https://github.com/purenix-org/purenix/pull/63
(pkgs.fetchpatch {
name = "purenix-purescript-0_15_12";
url = "https://github.com/purenix-org/purenix/commit/2dae563f887c7c8daf3dd3e292ee3580cb70d528.patch";
hash = "sha256-EZXf95BJINyqnRb2t/Ao/9C8ttNp3A27rpKiEKJjO6Y=";
})
(pkgs.fetchpatch {
name = "purenix-import-fix";
url = "https://github.com/purenix-org/purenix/commit/f1890690264e7e5ce7f5b0a32d73d910ce2cbd73.patch";
hash = "sha256-MRITcNOiaWmzlTd9l7sIz/LhlnpW8T02CXdcc1qQt3c=";
})
])
];
}
)
purescript
purenix
;
# containers <0.6, semigroupoids <5.3
data-lens = doJailbreak super.data-lens;
hashable = lib.pipe super.hashable [
# Big-endian POWER:
# Test suite xxhash-tests: RUNNING...
# xxhash
# oneshot
# w64-ref: OK (0.03s)
# +++ OK, passed 100 tests.
# w64-examples: FAIL
# tests/xxhash-tests.hs:21:
# expected: 2768807632077661767
# but got: 13521078365639231154
# https://github.com/haskell-unordered-containers/hashable/issues/323
(dontCheckIf pkgs.stdenv.hostPlatform.isBigEndian)
];
cborg = appendPatches [
# This patch changes CPP macros form gating on the version of ghc-prim to base
# since that's where the definitions are imported from. The source commit
# also changes the cabal file metadata which we filter out since we are
# only interested in this change as a dependency of cborg-i686-support-upstream.patch.
(pkgs.fetchpatch {
name = "cborg-no-gate-on-ghc-prim-version.patch";
url = "https://github.com/well-typed/cborg/commit/a33f94f616f5047e45608a34ca16bfb1304ceaa1.patch";
hash = "sha256-30j4Dksh2nnLKAcUF5XJw3Z/UjfV3F+JFnHeXSUs9Rk=";
includes = [ "**/Codec/CBOR/**" ];
stripLen = 1;
})
# Fixes compilation on 32-bit platforms. Unreleased patch committed to the
# upstream master branch: https://github.com/well-typed/cborg/pull/351
(pkgs.fetchpatch {
name = "cborg-i686-support-upstream.patch";
url = "https://github.com/well-typed/cborg/commit/ecc1360dcf9e9ee27d08de5206b844e075c88ca4.patch";
hash = "sha256-9m2FlG6ziRxA1Dy22mErBaIjiZHa1dqtkbmFnMMFrTI=";
stripLen = 1;
})
] super.cborg;
# Doesn't compile with tasty-quickcheck == 0.11 (see issue above)
serialise = dontCheck super.serialise;
# 2025-02-06: Allow tasty-quickcheck == 0.11.*
# https://github.com/google/ghc-source-gen/issues/120
ghc-source-gen = doJailbreak super.ghc-source-gen;
# https://github.com/byteverse/bytebuild/issues/20#issuecomment-2652113837
bytebuild = doJailbreak super.bytebuild;
# Too strict bounds on tasty <1.5 and tasty-quickcheck <0.11
# https://github.com/phadej/aeson-extra/issues/62
aeson-extra = doJailbreak super.aeson-extra;
# composite-aeson <0.8, composite-base <0.8
haskell-coffee = doJailbreak super.haskell-coffee;
# Test suite doesn't compile anymore
twitter-types = dontCheck super.twitter-types;
secp256k1-haskell = appendPatch (pkgs.fetchpatch {
# https://github.com/jprupp/secp256k1-haskell/pull/51
name = "remove-deprecated-aliases";
url = "https://github.com/jprupp/secp256k1-haskell/commit/68318be6ac5271639e3e982a9a5b194dc1f926c2.patch";
sha256 = "sha256-l9WPdV5D8C/t6YXg7Cf6RyNx0cnJKp78VLk02On1Zt4=";
}) super.secp256k1-haskell;
# Tests open file "data/test_vectors_aserti3-2d_run01.txt" but it doesn't exist
haskoin-core = dontCheck super.haskoin-core;
# unix-compat <0.5
hxt-cache = doJailbreak super.hxt-cache;
# tests can't find the test binary anymore - parseargs-example
parseargs = dontCheck super.parseargs;
# Test failure https://gitlab.com/lysxia/ap-normalize/-/issues/2
ap-normalize = dontCheck super.ap-normalize;
# Fixes test that checks error messages which is sensitive to GHC/Cabal version changes
heist = appendPatches [
(pkgs.fetchpatch {
name = "heist-fix-ghc-errorr-message-test.patch";
url = "https://github.com/snapframework/heist/commit/9c8c963021608f09e93d486e5339e45073c757bc.patch";
sha256 = "sha256-lenMCb6o0aAJ8D450JB76cZ49o+LVl2UO9hhAZYPacI=";
})
] super.heist;
# 2025-09-03: Disable tests until this is solved:
# https://github.com/clash-lang/ghc-typelits-extra/issues/60
ghc-typelits-extra = lib.pipe super.ghc-typelits-extra [
(warnAfterVersion "0.4.8")
dontCheck
];
# 2025-09-16: 0.5 adds support for GHC 9.12 and doesn't actually seem to contain a
# breaking change, so we can upgrade beyond Stackage.
# https://github.com/clash-lang/ghc-tcplugins-extra/pull/29#issuecomment-3299008674
# https://github.com/clash-lang/ghc-tcplugins-extra/compare/702dda2095c66c4f5148a749c8b7dbcc8a09f5c...v0.5.0
ghc-tcplugins-extra = doDistribute self.ghc-tcplugins-extra_0_5;
# 2025-09-11: Tests have been fixed in 0.7.12, but it requests ghc-tcplugins-extra >= 0.5
# which Stackage LTS won't update to, but we can.
ghc-typelits-natnormalise = doDistribute self.ghc-typelits-natnormalise_0_7_12;
# calls ghc in tests
# https://github.com/brandonchinn178/tasty-autocollect/issues/54
tasty-autocollect = dontCheck super.tasty-autocollect;
postgrest =
lib.pipe
(super.postgrest.overrideScope (
self: super: {
# 2025-01-19: Upstream is stuck at hasql < 1.7
# Jailbreaking for newer postgresql-libpq, which seems to work fine
postgresql-binary = dontCheck (doJailbreak super.postgresql-binary_0_13_1_3);
hasql = dontCheck (doJailbreak super.hasql_1_6_4_4);
# Matching dependencies for hasql < 1.6.x
hasql-dynamic-statements = dontCheck super.hasql-dynamic-statements_0_3_1_5;
hasql-implicits = dontCheck super.hasql-implicits_0_1_1_3;
hasql-notifications = unmarkBroken (dontCheck super.hasql-notifications_0_2_2_2);
hasql-pool = dontCheck super.hasql-pool_1_0_1;
hasql-transaction = dontCheck super.hasql-transaction_1_1_0_1;
text-builder = super.text-builder_0_6_10;
text-builder-dev = super.text-builder-dev_0_3_10;
}
))
[
# 2023-12-20: New version needs extra dependencies
(addBuildDepends [
self.cache
self.extra
self.focus
self.fuzzyset_0_2_4
self.http-client
self.jose-jwt
self.neat-interpolation
self.prometheus-client
self.some
self.stm-hamt
self.timeit
])
# 2022-12-02: Too strict bounds.
doJailbreak
# 2022-12-02: Hackage release lags behind actual releases: https://github.com/PostgREST/postgrest/issues/2275
(overrideSrc rec {
version = "14.16";
src = pkgs.fetchFromGitHub {
owner = "PostgREST";
repo = "postgrest";
rev = "v${version}";
hash = "sha256-lIUXBBFrnMN5IIW2cAzaE4WlXPmdiQmpBcYklxS3rI4=";
};
})
];
# Too strict bounds on hspec < 2.11
fuzzyset_0_2_4 = doJailbreak super.fuzzyset_0_2_4;
# 2026-04-27 too strict bounds on thread-utils-context < 0.4
# https://github.com/iand675/hs-opentelemetry/issues/218
hs-opentelemetry-api = doJailbreak super.hs-opentelemetry-api;
# The following all have too strict bounds on hs-opentelemtry-api < 0.3
# https://github.com/iand675/hs-opentelemetry/issues/203
hs-opentelemetry-exporter-handle = doJailbreak super.hs-opentelemetry-exporter-handle;
hs-opentelemetry-exporter-in-memory = doJailbreak super.hs-opentelemetry-exporter-in-memory;
hs-opentelemetry-instrumentation-cloudflare = doJailbreak super.hs-opentelemetry-instrumentation-cloudflare;
hs-opentelemetry-instrumentation-conduit = doJailbreak super.hs-opentelemetry-instrumentation-conduit;
hs-opentelemetry-instrumentation-hspec = doJailbreak super.hs-opentelemetry-instrumentation-hspec;
hs-opentelemetry-instrumentation-http-client = doJailbreak super.hs-opentelemetry-instrumentation-http-client;
hs-opentelemetry-instrumentation-persistent = doJailbreak super.hs-opentelemetry-instrumentation-persistent;
hs-opentelemetry-instrumentation-postgresql-simple = doJailbreak super.hs-opentelemetry-instrumentation-postgresql-simple;
hs-opentelemetry-instrumentation-tasty = doJailbreak super.hs-opentelemetry-instrumentation-tasty;
hs-opentelemetry-instrumentation-wai = doJailbreak super.hs-opentelemetry-instrumentation-wai;
hs-opentelemetry-instrumentation-yesod = doJailbreak super.hs-opentelemetry-instrumentation-yesod;
hs-opentelemetry-utils-exceptions = doJailbreak super.hs-opentelemetry-utils-exceptions;
html-charset = dontCheck super.html-charset;
# bytestring <0.11.0, optparse-applicative <0.13.0
# https://github.com/kseo/sfnt2woff/issues/1
sfnt2woff = doJailbreak super.sfnt2woff;
# libfuse3 fails to mount fuse file systems within the build environment
libfuse3 = dontCheck super.libfuse3;
# The hackage source is somehow missing a file present in the repo (tests/ListStat.hs).
sym = dontCheck super.sym;
# 2024-01-24: https://github.com/haskellari/tree-diff/issues/79
# exprParser fails to parse pretty printed structure correctly when the randomizer uses newlines (?)
tree-diff = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
"!/parsec-ansi-wl-pprint/"
];
}) super.tree-diff;
# Too strict bound on bytestring < 0.12
# https://github.com/raehik/heystone/issues/2
heystone = doJailbreak super.heystone;
# Too strict bounds on base, ghc-prim, primitive
# https://github.com/kowainik/typerep-map/pull/128
typerep-map = doJailbreak super.typerep-map;
# Too strict bounds on base
kewar = doJailbreak super.kewar;
# Workaround for Cabal failing to find nonexistent SDL2 library?!
# https://github.com/NixOS/nixpkgs/issues/260863
sdl2-gfx = overrideCabal { __propagatePkgConfigDepends = false; } super.sdl2-gfx;
# Needs git for compile-time insertion of commit hash into --version string.
kmonad = overrideCabal (drv: {
libraryToolDepends = (drv.libraryToolDepends or [ ]) ++ [ pkgs.buildPackages.git ];
}) super.kmonad;
# 2024-01-24: support optparse-applicative 0.18
niv = appendPatches [
(fetchpatch {
# needed for the following patch to apply
url = "https://github.com/nmattia/niv/commit/7b76374b2b44152bfbf41fcb60162c2ce9182e7a.patch";
includes = [ "src/*" ];
hash = "sha256-3xG+GD6fUCGgi2EgS7WUpjfn6gvc2JurJcIrnyy4ys8=";
})
(fetchpatch {
# Update to optparse-applicative 0.18
url = "https://github.com/nmattia/niv/commit/290965abaa02be33b601032d850c588a6bafb1a5.patch";
hash = "sha256-YxUdv4r/Fx+8YxHhqEuS9uZR1XKzVCPrLmj5+AY5GRA=";
})
] super.niv;
# 2024-03-25: HSH broken because of the unix-2.8.0.0 breaking change
HSH = appendPatches [ ./patches/HSH-unix-openFd.patch ] super.HSH;
# 2025-09-03: allow base 4.20
# https://github.com/phadej/aeson-optics/issues/20
aeson-optics = lib.pipe super.aeson-optics [
(warnAfterVersion "1.2.1")
doJailbreak
];
# https://github.com/isovector/type-errors/issues/9
type-errors = dontCheck super.type-errors;
# Too strict bounds on text. Can be removed after https://github.com/alx741/currencies/pull/3 is merged
currencies = doJailbreak super.currencies;
argon2 = appendPatch (fetchpatch {
# https://github.com/haskell-hvr/argon2/pull/20
url = "https://github.com/haskell-hvr/argon2/commit/f7cc92f18e233e6b1dabf1798dd099e17b6a81a1.patch";
hash = "sha256-JxraFWzErJT4EhELa3PWBGHaLT9OLgEPNSnxwpdpHd0=";
}) (doJailbreak super.argon2); # Unmaintained
# 2025-10-02: Too strict upper bound on tasty-quickcheck (<0.11)
# https://github.com/phadej/zinza/pull/28
zinza = dontCheck super.zinza;
pdftotext = overrideCabal (drv: {
jailbreak = true;
postPatch = ''
# Fixes https://todo.sr.ht/~geyaeb/haskell-pdftotext/6
substituteInPlace pdftotext.cabal --replace-quiet c-sources cxx-sources
# Fix cabal ignoring cxx because the cabal format version is too old
substituteInPlace pdftotext.cabal --replace-quiet ">=1.10" 2.2
# Fix wrong license name that breaks recent cabal version
substituteInPlace pdftotext.cabal --replace-quiet BSD3 BSD-3-Clause
''
+ (drv.postPatch or "");
}) super.pdftotext;
# QuickCheck <2.15
# https://github.com/google/proto-lens/issues/403
proto-lens-arbitrary = doJailbreak super.proto-lens-arbitrary;
# 2024-07-27: building test component requires non-trivial custom build steps
# https://github.com/awakesecurity/proto3-suite/blob/bec9d40e2767143deed5b2d451197191f1d8c7d5/nix/overlays/haskell-packages.nix#L311
proto3-suite = lib.pipe super.proto3-suite [
dontCheck
doJailbreak
];
# Tests require docker
testcontainers = dontCheck super.testcontainers;
# https://bitbucket.org/echo_rm/hailgun/pull-requests/27
hailgun = appendPatches [
(fetchpatch {
url = "https://bitbucket.org/nh2/hailgun/commits/ac2bc2a3003e4b862625862c4565fece01c0cf57/raw";
sha256 = "sha256-MWeK9nzMVP6cQs2GBFkohABgL8iWcT7YzwF+tLOkIjo=";
})
(fetchpatch {
url = "https://bitbucket.org/nh2/hailgun/commits/583daaf87265a7fa67ce5171fe1077e61be9b39c/raw";
sha256 = "sha256-6WITonLoONxZzzkS7EI79LwmwSdkt6TCgvHA2Hwy148=";
})
(fetchpatch {
url = "https://bitbucket.org/nh2/hailgun/commits/b9680b82f6d58f807828c1bbb57e26c7af394501/raw";
sha256 = "sha256-MnOc51tTNg8+HDu1VS2Ct7Mtu0vuuRd3DjzOAOF+t7Q=";
})
] super.hailgun;
# opencascade-hs requires the include path configuring relative to the
# opencascade subdirectory in include.
opencascade-hs = appendConfigureFlags [
"--extra-include-dirs=${lib.getDev pkgs.opencascade-occt}/include/opencascade"
] super.opencascade-hs;
# https://github.com/haskell-grpc-native/http2-client/pull/95
# https://github.com/haskell-grpc-native/http2-client/pull/96
# https://github.com/haskell-grpc-native/http2-client/pull/97
# Apply patch for http2 >= 5.2, allow tls >= 2.1 and network >= 3.2
http2-client = appendPatches [
(fetchpatch {
name = "http2-client-fix-build-with-http2-5.3.patch";
url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch";
sha256 = "09205ziac59axld8v1cyxa9xl42srypaq8d1gf6y3qwpmrx3rgr9";
})
] (doJailbreak super.http2-client);
# Relax http2 version bound (5.3.9 -> 5.3.10)
# https://github.com/well-typed/grapesy/issues/297
# Tests fail with duplicate IsLabel instance error
grapesy = dontCheck (doJailbreak super.grapesy);
# doctests are failing https://github.com/alpmestan/taggy-lens/issues/8
taggy-lens = dontCheck super.taggy-lens;
# 2025-09-03: allow bytestring 0.12
# https://github.com/wangbj/hashing/issues/4
hashing = lib.pipe super.hashing [
(warnAfterVersion "0.1.1.0")
doJailbreak
];
bsb-http-chunked = lib.pipe super.bsb-http-chunked [
(warnAfterVersion "0.0.0.4")
# Last released in 2018
# https://github.com/sjakobi/bsb-http-chunked/issues/38
# https://github.com/sjakobi/bsb-http-chunked/issues/45
(overrideSrc {
src = pkgs.fetchFromGitHub {
owner = "sjakobi";
repo = "bsb-http-chunked";
rev = "c0ecd72fe2beb1cf7de9340cc8b4a31045460532";
hash = "sha256-+UDxfywXPjxPuFupcB8veyMYWVQCKha64me9HADtFGg=";
};
})
# https://github.com/sjakobi/bsb-http-chunked/pull/49
(appendPatch (fetchpatch {
url = "https://github.com/sjakobi/bsb-http-chunked/commit/689bf9ce12b8301d0e13a68e4a515c2779b62947.patch";
sha256 = "sha256-ZdCXMhni+RGisRODiElObW5c4hKy2giWQmWnatqeRJo=";
}))
];
# jailbreak to allow deepseq >= 1.5, https://github.com/jumper149/blucontrol/issues/3
blucontrol = doJailbreak super.blucontrol;
HList = lib.pipe super.HList [
# Fixes syntax error in tests
(appendPatch (fetchpatch {
url = "https://bitbucket.org/HList/hlist/commits/e688f11d7432c812c2b238464401a86f588f81e1/raw";
sha256 = "sha256-XIBIrR2MFmhKaocZJ4p57CgmAaFmMU5Z5a0rk2CjIcM=";
}))
];
# 2025-04-09: jailbreak to allow hedgehog >= 1.5
hw-int = warnAfterVersion "0.0.2.0" (doJailbreak super.hw-int);
# 2025-04-09: jailbreak to allow tasty-quickcheck >= 0.11
bzlib = warnAfterVersion "0.5.2.0" (doJailbreak super.bzlib);
# Missing test files in sdist
# https://github.com/vmchale/lzlib/issues/1
lzlib = dontCheck super.lzlib;
# 2025-07-29: test suite "test" fails to build because of missing source files,
# fixed by https://github.com/commercialhaskell/path/pull/193
path = warnAfterVersion "0.9.6" (dontCheck super.path);
inherit
(lib.mapAttrs (
_: pkg:
lib.pipe pkg [
(addTestToolDepends (
with pkgs;
[
cvc4
cvc5
z3
]
))
# 2025-04-09: FIXME: template_tests still failing with:
# fd:9: hPutBuf: resource vanished (Broken pipe)
dontCheck
doDistribute
]
) super)
what4
what4_1_7_3
;
copilot-theorem = lib.pipe super.copilot-theorem [
(addTestToolDepends (with pkgs; [ z3 ]))
];
# 2025-04-09: jailbreak to allow mtl >= 2.3, template-haskell >= 2.17, text >= 1.3
egison-pattern-src-th-mode = warnAfterVersion "0.2.1.2" (
doJailbreak super.egison-pattern-src-th-mode
);
# Missing test files, (and one the test suite needs stack)
# https://github.com/egison/egison/issues/283
egison = dontCheck super.egison;
# 2025-12-27: doctests broken with -Wx-partial warning
# https://github.com/junjihashimoto/th-cas/issues/1
th-cas = overrideCabal {
testTargets = [ "spec" ];
} super.th-cas;
# https://github.com/TristanCacqueray/haskell-xstatic/issues/5
# Test suite gets confused by mime-types >= 0.1.2.1
xstatic-th = dontCheck super.xstatic-th;
# 2025-04-09: jailbreak to allow base >= 4.17, hasql >= 1.6, hasql-transaction-io >= 0.2
hasql-streams-core = warnAfterVersion "0.1.0.0" (doJailbreak super.hasql-streams-core);
# 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1
pipes-text = warnAfterVersion "1.0.1" (doJailbreak super.pipes-text);
# 2025-04-09: jailbreak to allow bytestring >= 0.12
array-builder = warnAfterVersion "0.2.0.0" (doJailbreak super.array-builder);
# 2025-04-09: missing dependency - somehow it's not listed on hackage
broadcast-chan = addExtraLibrary self.conduit super.broadcast-chan;
# 2025-04-09: jailbreak to allow aeson >= 2.2, base >= 4.19, text >= 2.1
ebird-api = warnAfterVersion "0.2.0.0" (doJailbreak super.ebird-api);
# 2025-04-13: jailbreak to allow bytestring >= 0.12
strings = warnAfterVersion "1.1" (doJailbreak super.strings);
# 2025-04-13: jailbreak to allow bytestring >= 0.12
twain = warnAfterVersion "2.2.0.1" (doJailbreak super.twain);
# 2025-04-13: jailbreak to allow hedgehog >= 1.5
hw-bits = warnAfterVersion "0.7.2.2" (doJailbreak super.hw-bits);
monad-bayes =
# Floating point precision issues. Test suite is only checked on x86_64.
# https://github.com/tweag/monad-bayes/issues/368
dontCheckIf
(
let
inherit (pkgs.stdenv) hostPlatform;
in
!hostPlatform.isx86_64
# Presumably because we emulate x86_64-darwin via Rosetta, x86_64-darwin
# also fails on Hydra
|| hostPlatform.isDarwin
)
# Too strict bounds on brick (<2.6), vty (<6.3)
# https://github.com/tweag/monad-bayes/issues/378
(doJailbreak super.monad-bayes);
# 2025-04-13: jailbreak to allow th-abstraction >= 0.7
crucible = doJailbreak (
super.crucible.override {
what4 = self.what4_1_7_3;
}
);
crucible-llvm = super.crucible-llvm.override {
what4 = self.what4_1_7_3;
};
# Test suite invokes cabal-install in a way incompatible with our generic builder
# (i.e. tries to re-use the ghc package db / environment from dist-newstyle).
sensei = dontCheck super.sensei;
crux = super.crux.override {
simple-get-opt = self.simple-get-opt_0_4;
};
# 2025-04-23: jailbreak to allow megaparsec >= 9.7
# 2025-04-23: test data missing from tarball
crucible-syntax = doJailbreak (dontCheck super.crucible-syntax);
# 2025-04-23: missing test data
crucible-debug = overrideCabal (drv: {
testFlags = drv.testFlags or [ ] ++ [
"-p"
(lib.concatStringsSep "&&" [
"!/backtrace.txt/"
"!/block.txt/"
"!/call-basic.txt/"
"!/clear.txt/"
"!/frame.txt/"
"!/load-empty.txt/"
"!/obligation-false.txt/"
"!/prove-false.txt/"
"!/prove-true.txt/"
"!/test-data\\/.break.txt/"
"!/test-data\\/.reg.txt/"
"!/test-data\\/.reg.txt/"
"!/test-data\\/.trace.txt/"
"!/test-data\\/complete\\/.break.txt/"
])
];
}) super.crucible-debug;
# 2025-04-23: missing test data
llvm-pretty-bc-parser = dontCheck super.llvm-pretty-bc-parser;
# diagrams-builder wants diagrams-cairo < 1.5 for its cairo executable,
# but Stackage LTS 24 contains diagrams-cairo >= 1.5.
# As such it is difficult to provide (2025-09-13)
# ATTN: This needs to match ../../tools/graphics/diagrams-builder/default.nix:/backends
# TODO: can we reinstate this by manually passing an older version?
diagrams-builder = disableCabalFlag "cairo" (
super.diagrams-builder.override {
diagrams-cairo = null;
}
);
# 2025-04-23: Allow bytestring >= 0.12
# https://github.com/mrkkrp/wave/issues/48
wave = doJailbreak super.wave;
# Test suite no longer compiles with hspec-hedgehog >= 0.3
finitary = dontCheck super.finitary;
# 2025-04-13: jailbreak to allow template-haskell >= 2.17
sr-extra = warnAfterVersion "1.88" (
overrideCabal (drv: {
version = "1.88-unstable-2025-03-30";
# includes https://github.com/seereason/sr-extra/pull/7
src = pkgs.fetchFromGitHub {
owner = "seereason";
repo = "sr-extra";
rev = "2b18ced8d07aa8832168971842b20ea49369e4f0";
hash = "sha256-jInfHA1xkLjx5PfsgQVzeQIN3OjTUpEz7dpVNOGNo3g=";
};
editedCabalFile = null;
revision = null;
}) super.sr-extra
);
# Too strict bounds on base <4.19 and tasty <1.5
# https://github.com/maoe/ghc-prof/issues/25
ghc-prof = doJailbreak super.ghc-prof;
# aeson <2.2, bytestring <0.12, text <2.1
# https://github.com/jaspervdj/profiteur/issues/43
profiteur = doJailbreak super.profiteur;
# 2025-04-19: Tests randomly fail 6 out of 10 times
coinor-clp = dontCheck super.coinor-clp;
# 2025-04-19: Tests randomly fail 5 out of 10 times
fft = dontCheck super.fft;
# 2025-5-15: Too strict bounds on base <4.19, see: https://github.com/zachjs/sv2v/issues/317
sv2v = doJailbreak super.sv2v;
# 2025-06-25: Upper bounds of transformers and bytestring too strict,
# as haskore 0.2.0.8 was released in 2016 and is quite outdated.
# Tests fail with:
# ### Error in: 11:comparison with MIDI files generated by former Haskore versions:23:Ssf:1
# src/Test/MIDI/Ssf.mid: openBinaryFile: does not exist (No such file or directory)
# Necessary files aren't listed in extra-source-files in the cabal file
# and therefore aren't uploaded to hackage
# Needs to be fixed upstream
haskore = dontCheck (doJailbreak super.haskore);
# 2025-07-10: Hackage release is outdated, https://github.com/portnov/libssh2-hs/issues/77
libssh2 = overrideSrc {
version = "0.2.0.9-unstable-2025-04-03";
src =
pkgs.fetchFromGitHub {
owner = "portnov";
repo = "libssh2-hs";
rev = "d35fa047cd872a73cd4db83aa3185463ac88a1d7";
sha256 = "sha256-m3VVx9mgI3OqtWHC8qY63/Wns808q5iITD5regdMILo=";
}
+ "/libssh2";
} super.libssh2;
# 2025-8-19: dontCheck because of: https://github.com/ucsd-progsys/liquid-fixpoint/issues/760
# i.e. tests assume existence of .git and also fail for some versions of CVC5,
# including the current one in nixpkgs.
liquid-fixpoint = dontCheck super.liquid-fixpoint;
# 2025-8-26: Too strict bounds on containers and text, see: https://github.com/stackbuilders/inflections-hs/pull/83
inflections = doJailbreak super.inflections;
# 2025-8-26: Too strict bounds on base <=4.19, see https://github.com/typeclasses/stripe/pull/11
stripe-concepts = doJailbreak super.stripe-concepts;
stripe-signature = doJailbreak super.stripe-signature;
stripe-wreq = doJailbreak super.stripe-wreq;
# 2026-05-10: Remove again, when hackage bump is recent enough
botan-low = overrideCabal {
version = "0.2.0.1";
sha256 = "sha256-yC+GJDNO58TIc197Mgn/vqpt4fY3YghLhJfmGkQjsxk=";
revision = null;
editedCabalFile = null;
} (warnAfterVersion "0.2.0.1" super.botan-low);
# 2026-05-10: Remove again, when hackage bump is recent enough
botan-bindings = overrideCabal {
version = "0.3.0.0";
sha256 = "sha256-tsarIc3LcUKPgSWZ+xcGPWGO2f9OF6SWHB6nmX/vJYw=";
revision = null;
editedCabalFile = null;
} (warnAfterVersion "0.3.0.0" super.botan-bindings);
}
// import ./configuration-tensorflow.nix { inherit pkgs haskellLib; } self super
# Amazonka Packages
# 2025-01-24: use latest source files from github, as the hackage release is outdated, https://github.com/brendanhay/amazonka/issues/1001
// (
let
amazonkaSrc = pkgs.fetchFromGitHub {
owner = "brendanhay";
repo = "amazonka";
rev = "7645bd335f008912b9e5257486f622b674de7afa";
sha256 = "sha256-ObamDnJdcLA2BlX9iGIxkaknUeL3Po3madKO4JA/em0=";
};
setAmazonkaSourceRoot =
dir: drv:
(overrideSrc {
version = "2.0-unstable-2025-04-16";
src = amazonkaSrc + "/${dir}";
})
drv;
# To get the list of amazonka services run:
# > nix eval --impure --expr 'builtins.attrNames (import ./. {}).haskellPackages' --json | jq '.[]' | grep '^"amazonka'
# NB: we exclude amazonka-test and amazonka-s3-streaming
amazonkaServices = [
"amazonka"
"amazonka-accessanalyzer"
"amazonka-account"
"amazonka-alexa-business"
"amazonka-amp"
"amazonka-amplify"
"amazonka-amplifybackend"
"amazonka-amplifyuibuilder"
"amazonka-apigateway"
"amazonka-apigatewaymanagementapi"
"amazonka-apigatewayv2"
"amazonka-appconfig"
"amazonka-appconfigdata"
"amazonka-appflow"
"amazonka-appintegrations"
"amazonka-application-autoscaling"
"amazonka-application-insights"
"amazonka-applicationcostprofiler"
"amazonka-appmesh"
"amazonka-apprunner"
"amazonka-appstream"
"amazonka-appsync"
"amazonka-arc-zonal-shift"
"amazonka-athena"
"amazonka-auditmanager"
"amazonka-autoscaling"
"amazonka-autoscaling-plans"
"amazonka-backup"
"amazonka-backup-gateway"
"amazonka-backupstorage"
"amazonka-batch"
"amazonka-billingconductor"
"amazonka-braket"
"amazonka-budgets"
"amazonka-certificatemanager"
"amazonka-certificatemanager-pca"
"amazonka-chime"
"amazonka-chime-sdk-identity"
"amazonka-chime-sdk-media-pipelines"
"amazonka-chime-sdk-meetings"
"amazonka-chime-sdk-messaging"
"amazonka-chime-sdk-voice"
"amazonka-cloud9"
"amazonka-cloudcontrol"
"amazonka-clouddirectory"
"amazonka-cloudformation"
"amazonka-cloudfront"
"amazonka-cloudhsm"
"amazonka-cloudhsmv2"
"amazonka-cloudsearch"
"amazonka-cloudsearch-domains"
"amazonka-cloudtrail"
"amazonka-cloudwatch"
"amazonka-cloudwatch-events"
"amazonka-cloudwatch-logs"
"amazonka-codeartifact"
"amazonka-codebuild"
"amazonka-codecommit"
"amazonka-codedeploy"
"amazonka-codeguru-reviewer"
"amazonka-codeguruprofiler"
"amazonka-codepipeline"
"amazonka-codestar"
"amazonka-codestar-connections"
"amazonka-codestar-notifications"
"amazonka-cognito-identity"
"amazonka-cognito-idp"
"amazonka-cognito-sync"
"amazonka-comprehend"
"amazonka-comprehendmedical"
"amazonka-compute-optimizer"
"amazonka-config"
"amazonka-connect"
"amazonka-connect-contact-lens"
"amazonka-connectcampaigns"
"amazonka-connectcases"
"amazonka-connectparticipant"
"amazonka-contrib-rds-utils"
"amazonka-controltower"
"amazonka-core"
"amazonka-cost-explorer"
"amazonka-cur"
"amazonka-customer-profiles"
"amazonka-databrew"
"amazonka-dataexchange"
"amazonka-datapipeline"
"amazonka-datasync"
"amazonka-detective"
"amazonka-devicefarm"
"amazonka-devops-guru"
"amazonka-directconnect"
"amazonka-discovery"
"amazonka-dlm"
"amazonka-dms"
"amazonka-docdb"
"amazonka-docdb-elastic"
"amazonka-drs"
"amazonka-ds"
"amazonka-dynamodb"
"amazonka-dynamodb-dax"
"amazonka-dynamodb-streams"
"amazonka-ebs"
"amazonka-ec2"
"amazonka-ec2-instance-connect"
"amazonka-ecr"
"amazonka-ecr-public"
"amazonka-ecs"
"amazonka-efs"
"amazonka-eks"
"amazonka-elastic-inference"
"amazonka-elasticache"
"amazonka-elasticbeanstalk"
"amazonka-elasticsearch"
"amazonka-elastictranscoder"
"amazonka-elb"
"amazonka-elbv2"
"amazonka-emr"
"amazonka-emr-containers"
"amazonka-emr-serverless"
"amazonka-evidently"
"amazonka-finspace"
"amazonka-finspace-data"
"amazonka-fis"
"amazonka-fms"
"amazonka-forecast"
"amazonka-forecastquery"
"amazonka-frauddetector"
"amazonka-fsx"
"amazonka-gamelift"
"amazonka-gamesparks"
"amazonka-glacier"
"amazonka-globalaccelerator"
"amazonka-glue"
"amazonka-grafana"
"amazonka-greengrass"
"amazonka-greengrassv2"
"amazonka-groundstation"
"amazonka-guardduty"
"amazonka-health"
"amazonka-healthlake"
"amazonka-honeycode"
"amazonka-iam"
"amazonka-iam-policy"
"amazonka-identitystore"
"amazonka-imagebuilder"
"amazonka-importexport"
"amazonka-inspector"
"amazonka-inspector2"
"amazonka-iot"
"amazonka-iot-analytics"
"amazonka-iot-dataplane"
"amazonka-iot-jobs-dataplane"
"amazonka-iot-roborunner"
"amazonka-iot1click-devices"
"amazonka-iot1click-projects"
"amazonka-iotdeviceadvisor"
"amazonka-iotevents"
"amazonka-iotevents-data"
"amazonka-iotfleethub"
"amazonka-iotfleetwise"
"amazonka-iotsecuretunneling"
"amazonka-iotsitewise"
"amazonka-iotthingsgraph"
"amazonka-iottwinmaker"
"amazonka-iotwireless"
"amazonka-ivs"
"amazonka-ivschat"
"amazonka-kafka"
"amazonka-kafkaconnect"
"amazonka-kendra"
"amazonka-keyspaces"
"amazonka-kinesis"
"amazonka-kinesis-analytics"
"amazonka-kinesis-firehose"
"amazonka-kinesis-video"
"amazonka-kinesis-video-archived-media"
"amazonka-kinesis-video-media"
"amazonka-kinesis-video-signaling"
"amazonka-kinesis-video-webrtc-storage"
"amazonka-kinesisanalyticsv2"
"amazonka-kms"
"amazonka-lakeformation"
"amazonka-lambda"
"amazonka-lex-models"
"amazonka-lex-runtime"
"amazonka-lexv2-models"
"amazonka-license-manager"
"amazonka-license-manager-linux-subscriptions"
"amazonka-license-manager-user-subscriptions"
"amazonka-lightsail"
"amazonka-location"
"amazonka-lookoutequipment"
"amazonka-lookoutmetrics"
"amazonka-lookoutvision"
"amazonka-m2"
"amazonka-macie"
"amazonka-maciev2"
"amazonka-managedblockchain"
"amazonka-marketplace-analytics"
"amazonka-marketplace-catalog"
"amazonka-marketplace-entitlement"
"amazonka-marketplace-metering"
"amazonka-mechanicalturk"
"amazonka-mediaconnect"
"amazonka-mediaconvert"
"amazonka-medialive"
"amazonka-mediapackage"
"amazonka-mediapackage-vod"
"amazonka-mediastore"
"amazonka-mediastore-dataplane"
"amazonka-mediatailor"
"amazonka-memorydb"
"amazonka-mgn"
"amazonka-migration-hub-refactor-spaces"
"amazonka-migrationhub"
"amazonka-migrationhub-config"
"amazonka-migrationhuborchestrator"
"amazonka-migrationhubstrategy"
"amazonka-ml"
"amazonka-mobile"
"amazonka-mq"
"amazonka-mtl"
"amazonka-mwaa"
"amazonka-neptune"
"amazonka-network-firewall"
"amazonka-networkmanager"
"amazonka-nimble"
"amazonka-oam"
"amazonka-omics"
"amazonka-opensearch"
"amazonka-opensearchserverless"
"amazonka-opsworks"
"amazonka-opsworks-cm"
"amazonka-organizations"
"amazonka-outposts"
"amazonka-panorama"
"amazonka-personalize"
"amazonka-personalize-events"
"amazonka-personalize-runtime"
"amazonka-pi"
"amazonka-pinpoint"
"amazonka-pinpoint-email"
"amazonka-pinpoint-sms-voice"
"amazonka-pinpoint-sms-voice-v2"
"amazonka-pipes"
"amazonka-polly"
"amazonka-pricing"
"amazonka-privatenetworks"
"amazonka-proton"
"amazonka-qldb"
"amazonka-qldb-session"
"amazonka-quicksight"
"amazonka-ram"
"amazonka-rbin"
"amazonka-rds"
"amazonka-rds-data"
"amazonka-redshift"
"amazonka-redshift-data"
"amazonka-redshift-serverless"
"amazonka-rekognition"
"amazonka-resiliencehub"
"amazonka-resource-explorer-v2"
"amazonka-resourcegroups"
"amazonka-resourcegroupstagging"
"amazonka-robomaker"
"amazonka-rolesanywhere"
"amazonka-route53"
"amazonka-route53-autonaming"
"amazonka-route53-domains"
"amazonka-route53-recovery-cluster"
"amazonka-route53-recovery-control-config"
"amazonka-route53-recovery-readiness"
"amazonka-route53resolver"
"amazonka-rum"
"amazonka-s3"
"amazonka-s3-encryption"
#"amazonka-s3-streaming"
"amazonka-s3outposts"
"amazonka-sagemaker"
"amazonka-sagemaker-a2i-runtime"
"amazonka-sagemaker-edge"
"amazonka-sagemaker-featurestore-runtime"
"amazonka-sagemaker-geospatial"
"amazonka-sagemaker-metrics"
"amazonka-sagemaker-runtime"
"amazonka-savingsplans"
"amazonka-scheduler"
"amazonka-schemas"
"amazonka-sdb"
"amazonka-secretsmanager"
"amazonka-securityhub"
"amazonka-securitylake"
"amazonka-serverlessrepo"
"amazonka-service-quotas"
"amazonka-servicecatalog"
"amazonka-servicecatalog-appregistry"
"amazonka-ses"
"amazonka-sesv2"
"amazonka-shield"
"amazonka-signer"
"amazonka-simspaceweaver"
"amazonka-sms"
"amazonka-sms-voice"
"amazonka-snow-device-management"
"amazonka-snowball"
"amazonka-sns"
"amazonka-sqs"
"amazonka-ssm"
"amazonka-ssm-contacts"
"amazonka-ssm-incidents"
"amazonka-ssm-sap"
"amazonka-sso"
"amazonka-sso-admin"
"amazonka-sso-oidc"
"amazonka-stepfunctions"
"amazonka-storagegateway"
"amazonka-sts"
"amazonka-support"
"amazonka-support-app"
"amazonka-swf"
"amazonka-synthetics"
#"amazonka-test"
"amazonka-textract"
"amazonka-timestream-query"
"amazonka-timestream-write"
"amazonka-transcribe"
"amazonka-transfer"
"amazonka-translate"
"amazonka-voice-id"
"amazonka-waf"
"amazonka-waf-regional"
"amazonka-wafv2"
"amazonka-wellarchitected"
"amazonka-wisdom"
"amazonka-workdocs"
"amazonka-worklink"
"amazonka-workmail"
"amazonka-workmailmessageflow"
"amazonka-workspaces"
"amazonka-workspaces-web"
"amazonka-xray"
];
amazonkaServiceOverrides = (
lib.genAttrs amazonkaServices (
name:
lib.pipe super.${name} [
(setAmazonkaSourceRoot "lib/services/${name}")
(x: x)
]
)
);
in
amazonkaServiceOverrides
// {
amazonka-core = lib.pipe super.amazonka-core [
(warnAfterVersion "2.0")
(setAmazonkaSourceRoot "lib/amazonka-core")
(addBuildDepends [
self.microlens
self.microlens-contra
self.microlens-pro
])
];
amazonka = warnAfterVersion "2.0" (
setAmazonkaSourceRoot "lib/amazonka" (doJailbreak super.amazonka)
);
amazonka-test = warnAfterVersion "2.0" (
setAmazonkaSourceRoot "lib/amazonka-test" (doJailbreak super.amazonka-test)
);
}
)
# Cachix packages
# Manually maintained
// (
let
version = "1.12.1";
src = pkgs.fetchFromGitHub {
owner = "cachix";
repo = "cachix";
tag = "v${version}";
hash = "sha256-OUB6hPlFBB9FRdZgZXSye4lDOg+fbrqKe8ePv2IM7NY=";
};
in
{
cachix-api = overrideSrc {
inherit version;
src = src + "/cachix-api";
} super.cachix-api;
cachix = lib.pipe super.cachix [
(overrideSrc {
inherit version;
src = src + "/cachix";
})
(
drv:
drv.override {
nix = self.hercules-ci-cnix-store.nixPackage;
hnix-store-core = self.hnix-store-core_0_8_0_0;
hnix-store-nar = self.hnix-store-nar;
}
)
];
}
)
# 2026-04-01: IHP packages need hasql >= 1.10 (via hasql-mapping).
# The scope renames hasql-stack attrs to the 1.10 line and unmarks
# hasql-mapping, which only builds against hasql >= 1.10 and so stays
# broken at the top level. dontCheck for tests that need a live
# PostgreSQL lives in configuration-nix.nix on the versioned attrs.
// (
let
ihpHasqlScope = self: super: {
hasql = doDistribute super.hasql_1_10_3;
hasql-dynamic-statements = doDistribute super.hasql-dynamic-statements_0_5_1;
hasql-notifications = doDistribute super.hasql-notifications_0_2_5_0;
hasql-pool = doDistribute super.hasql-pool_1_4_2;
hasql-transaction = doDistribute super.hasql-transaction_1_2_2;
postgresql-binary = doDistribute super.postgresql-binary_0_15_0_1;
text-builder = doDistribute super.text-builder_1_0_0_5;
hasql-mapping = doDistribute (unmarkBroken super.hasql-mapping);
postgresql-simple-postgresql-types = doDistribute (
unmarkBroken super.postgresql-simple-postgresql-types
);
};
ihpPackages = [
"ihp"
"ihp-datasync"
"ihp-graphql"
"ihp-hspec"
"ihp-ide"
"ihp-job-dashboard"
"ihp-migrate"
"ihp-pglistener"
"ihp-ssc"
"ihp-typed-sql"
];
in
lib.genAttrs ihpPackages (
name: haskellLib.doDistribute (haskellLib.unmarkBroken (super.${name}.overrideScope ihpHasqlScope))
)
)
|