1 { buildPackages, pkgsBuildTarget, pkgs, newScope, stdenv }:
4 # These are attributes in compiler that support integer-simple.
5 integerSimpleIncludes = [
12 nativeBignumIncludes = [
37 haskellLibUncomposable = import ../development/haskell-modules/lib {
42 callPackage = newScope {
43 haskellLib = haskellLibUncomposable.compose;
44 overrides = pkgs.haskell.packageOverrides;
47 bootstrapPackageSet = self: super: {
48 mkDerivation = drv: super.mkDerivation (drv // {
51 enableExecutableProfiling = false;
52 enableLibraryProfiling = false;
53 enableSharedExecutables = false;
54 enableSharedLibraries = false;
58 # Use this rather than `rec { ... }` below for sake of overlays.
59 inherit (pkgs.haskell) compiler packages;
62 lib = haskellLibUncomposable;
64 package-list = callPackage ../development/haskell-modules/package-list.nix {};
67 ghc865Binary = callPackage ../development/compilers/ghc/8.6.5-binary.nix {
68 # Should be llvmPackages_6 which has been removed from nixpkgs
72 ghc8102Binary = callPackage ../development/compilers/ghc/8.10.2-binary.nix {
73 llvmPackages = pkgs.llvmPackages_9;
76 ghc8107Binary = callPackage ../development/compilers/ghc/8.10.7-binary.nix {
77 llvmPackages = pkgs.llvmPackages_12;
80 ghc924Binary = callPackage ../development/compilers/ghc/9.2.4-binary.nix {
81 llvmPackages = pkgs.llvmPackages_12;
84 ghc8107 = callPackage ../development/compilers/ghc/8.10.7.nix {
86 # the oldest ghc with aarch64-darwin support is 8.10.5
87 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
88 # to my (@a-m-joseph) knowledge there are no newer official binaries for this platform
91 packages.ghc8107Binary;
92 inherit (buildPackages.python3Packages) sphinx;
93 # Need to use apple's patched xattr until
94 # https://github.com/xattr/xattr/issues/44 and
95 # https://github.com/xattr/xattr/issues/55 are solved.
96 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
97 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
98 llvmPackages = pkgs.llvmPackages_12;
100 ghc810 = compiler.ghc8107;
101 ghc902 = callPackage ../development/compilers/ghc/9.0.2.nix {
103 # the oldest ghc with aarch64-darwin support is 8.10.5
104 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
107 packages.ghc8107Binary;
108 inherit (buildPackages.python3Packages) sphinx;
109 inherit (buildPackages.darwin) autoSignDarwinBinariesHook xattr;
110 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
111 llvmPackages = pkgs.llvmPackages_12;
113 ghc90 = compiler.ghc902;
114 ghc924 = callPackage ../development/compilers/ghc/9.2.4.nix {
116 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
119 packages.ghc8107Binary;
120 inherit (buildPackages.python3Packages) sphinx;
121 # Need to use apple's patched xattr until
122 # https://github.com/xattr/xattr/issues/44 and
123 # https://github.com/xattr/xattr/issues/55 are solved.
124 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
125 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
126 llvmPackages = pkgs.llvmPackages_12;
128 ghc925 = callPackage ../development/compilers/ghc/9.2.5.nix {
130 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
133 packages.ghc8107Binary;
134 inherit (buildPackages.python3Packages) sphinx;
135 # Need to use apple's patched xattr until
136 # https://github.com/xattr/xattr/issues/44 and
137 # https://github.com/xattr/xattr/issues/55 are solved.
138 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
139 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
140 llvmPackages = pkgs.llvmPackages_12;
142 ghc926 = callPackage ../development/compilers/ghc/9.2.6.nix {
144 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
147 packages.ghc8107Binary;
148 inherit (buildPackages.python3Packages) sphinx;
149 # Need to use apple's patched xattr until
150 # https://github.com/xattr/xattr/issues/44 and
151 # https://github.com/xattr/xattr/issues/55 are solved.
152 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
153 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
154 llvmPackages = pkgs.llvmPackages_12;
156 ghc927 = callPackage ../development/compilers/ghc/9.2.7.nix {
158 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
161 packages.ghc8107Binary;
162 inherit (buildPackages.python3Packages) sphinx;
163 # Need to use apple's patched xattr until
164 # https://github.com/xattr/xattr/issues/44 and
165 # https://github.com/xattr/xattr/issues/55 are solved.
166 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
167 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
168 llvmPackages = pkgs.llvmPackages_12;
170 ghc928 = callPackage ../development/compilers/ghc/9.2.8.nix {
172 if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
175 packages.ghc8107Binary;
176 inherit (buildPackages.python3Packages) sphinx;
177 # Need to use apple's patched xattr until
178 # https://github.com/xattr/xattr/issues/44 and
179 # https://github.com/xattr/xattr/issues/55 are solved.
180 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
181 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
182 llvmPackages = pkgs.llvmPackages_12;
184 ghc92 = compiler.ghc928;
185 ghc942 = callPackage ../development/compilers/ghc/9.4.2.nix {
187 # Building with 9.2 is broken due to
188 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
189 # Use 8.10 as a workaround where possible to keep bootstrap path short.
191 # On ARM text won't build with GHC 8.10.*
192 if stdenv.hostPlatform.isAarch then
193 # TODO(@sternenseemann): package bindist
195 # No suitable bindists for powerpc64le
196 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
199 packages.ghc8107Binary;
200 inherit (buildPackages.python3Packages) sphinx;
201 # Need to use apple's patched xattr until
202 # https://github.com/xattr/xattr/issues/44 and
203 # https://github.com/xattr/xattr/issues/55 are solved.
204 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
205 # Support range >= 10 && < 14
206 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
207 llvmPackages = pkgs.llvmPackages_12;
209 ghc943 = callPackage ../development/compilers/ghc/9.4.3.nix {
211 # Building with 9.2 is broken due to
212 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
213 # Use 8.10 as a workaround where possible to keep bootstrap path short.
215 # On ARM text won't build with GHC 8.10.*
216 if stdenv.hostPlatform.isAarch then
217 # TODO(@sternenseemann): package bindist
219 # No suitable bindists for powerpc64le
220 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
223 packages.ghc8107Binary;
224 inherit (buildPackages.python3Packages) sphinx;
225 # Need to use apple's patched xattr until
226 # https://github.com/xattr/xattr/issues/44 and
227 # https://github.com/xattr/xattr/issues/55 are solved.
228 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
229 # Support range >= 10 && < 14
230 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
231 llvmPackages = pkgs.llvmPackages_12;
233 ghc944 = callPackage ../development/compilers/ghc/9.4.4.nix {
235 # Building with 9.2 is broken due to
236 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
237 # Use 8.10 as a workaround where possible to keep bootstrap path short.
239 # On ARM text won't build with GHC 8.10.*
240 if stdenv.hostPlatform.isAarch then
241 # TODO(@sternenseemann): package bindist
243 # No suitable bindists for powerpc64le
244 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
247 packages.ghc8107Binary;
248 inherit (buildPackages.python3Packages) sphinx;
249 # Need to use apple's patched xattr until
250 # https://github.com/xattr/xattr/issues/44 and
251 # https://github.com/xattr/xattr/issues/55 are solved.
252 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
253 # Support range >= 10 && < 14
254 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
255 llvmPackages = pkgs.llvmPackages_12;
257 ghc945 = callPackage ../development/compilers/ghc/9.4.5.nix {
259 # Building with 9.2 is broken due to
260 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
261 # Use 8.10 as a workaround where possible to keep bootstrap path short.
263 # On ARM text won't build with GHC 8.10.*
264 if stdenv.hostPlatform.isAarch then
265 # TODO(@sternenseemann): package bindist
267 # No suitable bindists for powerpc64le
268 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
271 packages.ghc8107Binary;
272 inherit (buildPackages.python3Packages) sphinx;
273 # Need to use apple's patched xattr until
274 # https://github.com/xattr/xattr/issues/44 and
275 # https://github.com/xattr/xattr/issues/55 are solved.
276 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
277 # Support range >= 10 && < 14
278 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
279 llvmPackages = pkgs.llvmPackages_12;
281 ghc946 = callPackage ../development/compilers/ghc/9.4.6.nix {
283 # Building with 9.2 is broken due to
284 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
285 # Use 8.10 as a workaround where possible to keep bootstrap path short.
287 # On ARM text won't build with GHC 8.10.*
288 if stdenv.hostPlatform.isAarch then
289 # TODO(@sternenseemann): package bindist
291 # No suitable bindists for powerpc64le
292 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
295 packages.ghc8107Binary;
296 inherit (buildPackages.python3Packages) sphinx;
297 # Need to use apple's patched xattr until
298 # https://github.com/xattr/xattr/issues/44 and
299 # https://github.com/xattr/xattr/issues/55 are solved.
300 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
301 # Support range >= 10 && < 14
302 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
303 llvmPackages = pkgs.llvmPackages_12;
305 ghc947 = callPackage ../development/compilers/ghc/9.4.7.nix {
307 # Building with 9.2 is broken due to
308 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
309 # Use 8.10 as a workaround where possible to keep bootstrap path short.
311 # On ARM text won't build with GHC 8.10.*
312 if stdenv.hostPlatform.isAarch then
313 # TODO(@sternenseemann): package bindist
315 # No suitable bindists for powerpc64le
316 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
319 packages.ghc8107Binary;
320 inherit (buildPackages.python3Packages) sphinx;
321 # Need to use apple's patched xattr until
322 # https://github.com/xattr/xattr/issues/44 and
323 # https://github.com/xattr/xattr/issues/55 are solved.
324 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
325 # Support range >= 10 && < 14
326 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
327 llvmPackages = pkgs.llvmPackages_12;
329 ghc948 = callPackage ../development/compilers/ghc/9.4.8.nix {
331 # Building with 9.2 is broken due to
332 # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
333 # Use 8.10 as a workaround where possible to keep bootstrap path short.
335 # On ARM text won't build with GHC 8.10.*
336 if stdenv.hostPlatform.isAarch then
337 # TODO(@sternenseemann): package bindist
339 # No suitable bindists for powerpc64le
340 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
343 packages.ghc8107Binary;
344 inherit (buildPackages.python3Packages) sphinx;
345 # Need to use apple's patched xattr until
346 # https://github.com/xattr/xattr/issues/44 and
347 # https://github.com/xattr/xattr/issues/55 are solved.
348 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
349 # Support range >= 10 && < 14
350 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
351 llvmPackages = pkgs.llvmPackages_12;
353 ghc94 = compiler.ghc948;
354 ghc962 = callPackage ../development/compilers/ghc/9.6.2.nix {
356 # For GHC 9.2 no armv7l bindists are available.
357 if stdenv.hostPlatform.isAarch32 then
359 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
362 packages.ghc924Binary;
363 inherit (buildPackages.python3Packages) sphinx;
364 # Need to use apple's patched xattr until
365 # https://github.com/xattr/xattr/issues/44 and
366 # https://github.com/xattr/xattr/issues/55 are solved.
367 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
368 # Support range >= 11 && < 16
369 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15;
370 llvmPackages = pkgs.llvmPackages_15;
372 ghc963 = callPackage ../development/compilers/ghc/9.6.3.nix {
374 # For GHC 9.2 no armv7l bindists are available.
375 if stdenv.hostPlatform.isAarch32 then
377 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
380 packages.ghc924Binary;
381 inherit (buildPackages.python3Packages) sphinx;
382 # Need to use apple's patched xattr until
383 # https://github.com/xattr/xattr/issues/44 and
384 # https://github.com/xattr/xattr/issues/55 are solved.
385 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
386 # Support range >= 11 && < 16
387 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15;
388 llvmPackages = pkgs.llvmPackages_15;
390 ghc96 = compiler.ghc963;
391 ghc981 = callPackage ../development/compilers/ghc/9.8.1.nix {
392 # No bindist packaged for 9.4.* yet
393 bootPkgs = packages.ghc947;
394 inherit (buildPackages.python3Packages) sphinx;
395 # Need to use apple's patched xattr until
396 # https://github.com/xattr/xattr/issues/44 and
397 # https://github.com/xattr/xattr/issues/55 are solved.
398 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
399 # Support range >= 11 && < 16
400 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15;
401 llvmPackages = pkgs.llvmPackages_15;
403 ghc98 = compiler.ghc981;
404 ghcHEAD = callPackage ../development/compilers/ghc/head.nix {
405 bootPkgs = packages.ghc963;
406 inherit (buildPackages.python3Packages) sphinx;
407 # Need to use apple's patched xattr until
408 # https://github.com/xattr/xattr/issues/44 and
409 # https://github.com/xattr/xattr/issues/55 are solved.
410 inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
411 # 2023-01-15: Support range >= 11 && < 16
412 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15;
413 llvmPackages = pkgs.llvmPackages_15;
416 ghcjs = compiler.ghcjs810;
417 ghcjs810 = callPackage ../development/compilers/ghcjs/8.10 {
418 bootPkgs = packages.ghc810;
419 ghcjsSrcJson = ../development/compilers/ghcjs/8.10/git.json;
420 stage0 = ../development/compilers/ghcjs/8.10/stage0.nix;
423 # The integer-simple attribute set contains all the GHC compilers
424 # build with integer-simple instead of integer-gmp.
426 integerSimpleGhcNames = pkgs.lib.filter
427 (name: builtins.elem name integerSimpleIncludes)
428 (pkgs.lib.attrNames compiler);
429 in pkgs.recurseIntoAttrs (pkgs.lib.genAttrs
430 integerSimpleGhcNames
431 (name: compiler.${name}.override { enableIntegerSimple = true; }));
433 # Starting from GHC 9, integer-{simple,gmp} is replaced by ghc-bignum
434 # with "native" and "gmp" backends.
436 nativeBignumGhcNames = pkgs.lib.filter
437 (name: builtins.elem name nativeBignumIncludes)
438 (pkgs.lib.attrNames compiler);
439 in pkgs.recurseIntoAttrs (pkgs.lib.genAttrs
441 (name: compiler.${name}.override { enableNativeBignum = true; }));
444 # Default overrides that are applied to all package sets.
445 packageOverrides = self : super : {};
447 # Always get compilers from `buildPackages`
448 packages = let bh = buildPackages.haskell; in {
450 ghc865Binary = callPackage ../development/haskell-modules {
451 buildHaskellPackages = bh.packages.ghc865Binary;
452 ghc = bh.compiler.ghc865Binary;
453 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.6.x.nix { };
454 packageSetConfig = bootstrapPackageSet;
456 ghc8102Binary = callPackage ../development/haskell-modules {
457 buildHaskellPackages = bh.packages.ghc8102Binary;
458 ghc = bh.compiler.ghc8102Binary;
459 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { };
460 packageSetConfig = bootstrapPackageSet;
462 ghc8107Binary = callPackage ../development/haskell-modules {
463 buildHaskellPackages = bh.packages.ghc8107Binary;
464 ghc = bh.compiler.ghc8107Binary;
465 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { };
466 packageSetConfig = bootstrapPackageSet;
468 ghc924Binary = callPackage ../development/haskell-modules {
469 buildHaskellPackages = bh.packages.ghc924Binary;
470 ghc = bh.compiler.ghc924Binary;
471 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
472 packageSetConfig = bootstrapPackageSet;
474 ghc8107 = callPackage ../development/haskell-modules {
475 buildHaskellPackages = bh.packages.ghc8107;
476 ghc = bh.compiler.ghc8107;
477 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { };
479 ghc810 = packages.ghc8107;
480 ghc902 = callPackage ../development/haskell-modules {
481 buildHaskellPackages = bh.packages.ghc902;
482 ghc = bh.compiler.ghc902;
483 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.0.x.nix { };
485 ghc90 = packages.ghc902;
486 ghc924 = callPackage ../development/haskell-modules {
487 buildHaskellPackages = bh.packages.ghc924;
488 ghc = bh.compiler.ghc924;
489 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
491 ghc925 = callPackage ../development/haskell-modules {
492 buildHaskellPackages = bh.packages.ghc925;
493 ghc = bh.compiler.ghc925;
494 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
496 ghc926 = callPackage ../development/haskell-modules {
497 buildHaskellPackages = bh.packages.ghc926;
498 ghc = bh.compiler.ghc926;
499 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
501 ghc927 = callPackage ../development/haskell-modules {
502 buildHaskellPackages = bh.packages.ghc927;
503 ghc = bh.compiler.ghc927;
504 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
506 ghc928 = callPackage ../development/haskell-modules {
507 buildHaskellPackages = bh.packages.ghc928;
508 ghc = bh.compiler.ghc928;
509 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
511 ghc92 = packages.ghc928;
512 ghc942 = callPackage ../development/haskell-modules {
513 buildHaskellPackages = bh.packages.ghc942;
514 ghc = bh.compiler.ghc942;
515 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
517 ghc943 = callPackage ../development/haskell-modules {
518 buildHaskellPackages = bh.packages.ghc943;
519 ghc = bh.compiler.ghc943;
520 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
522 ghc944 = callPackage ../development/haskell-modules {
523 buildHaskellPackages = bh.packages.ghc944;
524 ghc = bh.compiler.ghc944;
525 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
527 ghc945 = callPackage ../development/haskell-modules {
528 buildHaskellPackages = bh.packages.ghc945;
529 ghc = bh.compiler.ghc945;
530 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
532 ghc946 = callPackage ../development/haskell-modules {
533 buildHaskellPackages = bh.packages.ghc946;
534 ghc = bh.compiler.ghc946;
535 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
537 ghc947 = callPackage ../development/haskell-modules {
538 buildHaskellPackages = bh.packages.ghc947;
539 ghc = bh.compiler.ghc947;
540 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
542 ghc948 = callPackage ../development/haskell-modules {
543 buildHaskellPackages = bh.packages.ghc948;
544 ghc = bh.compiler.ghc948;
545 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
547 ghc94 = packages.ghc948;
548 ghc962 = callPackage ../development/haskell-modules {
549 buildHaskellPackages = bh.packages.ghc962;
550 ghc = bh.compiler.ghc962;
551 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.6.x.nix { };
553 ghc963 = callPackage ../development/haskell-modules {
554 buildHaskellPackages = bh.packages.ghc963;
555 ghc = bh.compiler.ghc963;
556 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.6.x.nix { };
558 ghc96 = packages.ghc963;
559 ghc981 = callPackage ../development/haskell-modules {
560 buildHaskellPackages = bh.packages.ghc981;
561 ghc = bh.compiler.ghc981;
562 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.8.x.nix { };
564 ghc98 = packages.ghc981;
565 ghcHEAD = callPackage ../development/haskell-modules {
566 buildHaskellPackages = bh.packages.ghcHEAD;
567 ghc = bh.compiler.ghcHEAD;
568 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.10.x.nix { };
571 ghcjs = packages.ghcjs810;
572 ghcjs810 = callPackage ../development/haskell-modules rec {
573 buildHaskellPackages = ghc.bootPkgs;
574 ghc = bh.compiler.ghcjs810;
575 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { };
576 packageSetConfig = callPackage ../development/haskell-modules/configuration-ghcjs.nix { };
579 # The integer-simple attribute set contains package sets for all the GHC compilers
580 # using integer-simple instead of integer-gmp.
583 integerSimpleGhcNames = pkgs.lib.filter
584 (name: builtins.elem name integerSimpleIncludes)
585 (pkgs.lib.attrNames packages);
587 pkgs.lib.genAttrs integerSimpleGhcNames
589 packages.${name}.override (oldAttrs: {
590 ghc = bh.compiler.integer-simple.${name};
591 buildHaskellPackages = bh.packages.integer-simple.${name};
593 pkgs.lib.composeExtensions
594 (oldAttrs.overrides or (_: _: {}))
595 (_: _: { integer-simple = null; });
601 nativeBignumGhcNames = pkgs.lib.filter
602 (name: builtins.elem name nativeBignumIncludes)
603 (pkgs.lib.attrNames compiler);
605 pkgs.lib.genAttrs nativeBignumGhcNames
607 packages.${name}.override {
608 ghc = bh.compiler.native-bignum.${name};
609 buildHaskellPackages = bh.packages.native-bignum.${name};