haskell.compiler.ghc910: init at 9.10.1

https://www.haskell.org/ghc/blog/20240510-ghc-9.10.1-released.html

authored by vaibhavsagar.com and committed by sternenseemann 640cf550 f7e97309

+57 -1
+4
pkgs/development/compilers/ghc/9.10.1.nix
··· 1 + import ./common-hadrian.nix rec { 2 + version = "9.10.1"; 3 + sha256 = "bf386a302d4ee054791ffd51748900f15d71760fd199157922d120cc1f89e2f7"; 4 + }
+32
pkgs/top-level/haskell-packages.nix
··· 360 360 llvmPackages = pkgs.llvmPackages_15; 361 361 }; 362 362 ghc98 = compiler.ghc982; 363 + ghc9101 = callPackage ../development/compilers/ghc/9.10.1.nix { 364 + bootPkgs = 365 + # For GHC 9.6 no armv7l bindists are available. 366 + if stdenv.hostPlatform.isAarch32 then 367 + packages.ghc963 368 + else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then 369 + packages.ghc963 370 + else if stdenv.hostPlatform.isDarwin then 371 + # it seems like the GHC 9.6.* bindists are built with a different 372 + # toolchain than we are using (which I'm guessing from the fact 373 + # that 9.6.4 bindists pass linker flags our ld doesn't support). 374 + # With both 9.6.3 and 9.6.4 binary it is impossible to link against 375 + # the clock package (probably a hsc2hs problem). 376 + packages.ghc963 377 + else 378 + packages.ghc963Binary; 379 + inherit (buildPackages.python3Packages) sphinx; 380 + # Need to use apple's patched xattr until 381 + # https://github.com/xattr/xattr/issues/44 and 382 + # https://github.com/xattr/xattr/issues/55 are solved. 383 + inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook; 384 + # 2023-01-15: Support range >= 11 && < 16 385 + buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15; 386 + llvmPackages = pkgs.llvmPackages_15; 387 + }; 388 + ghc910 = compiler.ghc9101; 363 389 ghcHEAD = callPackage ../development/compilers/ghc/head.nix { 364 390 bootPkgs = 365 391 # For GHC 9.6 no armv7l bindists are available. ··· 525 551 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.8.x.nix { }; 526 552 }; 527 553 ghc98 = packages.ghc982; 554 + ghc9101 = callPackage ../development/haskell-modules { 555 + buildHaskellPackages = bh.packages.ghc9101; 556 + ghc = bh.compiler.ghc9101; 557 + compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.10.x.nix { }; 558 + }; 559 + ghc910 = packages.ghc9101; 528 560 ghcHEAD = callPackage ../development/haskell-modules { 529 561 buildHaskellPackages = bh.packages.ghcHEAD; 530 562 ghc = bh.compiler.ghcHEAD;
+21 -1
pkgs/top-level/release-haskell.nix
··· 74 74 ghc965 75 75 ghc981 76 76 ghc982 77 + ghc9101 77 78 ]; 78 79 79 80 # packagePlatforms applied to `haskell.packages.*` ··· 503 504 cabal-install = lib.subtractLists [ 504 505 compilerNames.ghc981 505 506 compilerNames.ghc982 507 + compilerNames.ghc9101 506 508 ] released; 507 509 Cabal_3_10_3_0 = lib.subtractLists [ 508 510 compilerNames.ghc981 509 511 compilerNames.ghc982 512 + compilerNames.ghc9101 510 513 ] released; 511 514 Cabal-syntax_3_10_3_0 = lib.subtractLists [ 512 515 compilerNames.ghc981 513 516 compilerNames.ghc982 517 + compilerNames.ghc9101 514 518 ] released; 515 519 cabal2nix = lib.subtractLists [ 516 520 compilerNames.ghc981 517 521 compilerNames.ghc982 522 + compilerNames.ghc9101 518 523 ] released; 519 524 cabal2nix-unstable = lib.subtractLists [ 520 525 compilerNames.ghc981 521 526 compilerNames.ghc982 527 + compilerNames.ghc9101 522 528 ] released; 523 529 funcmp = released; 524 530 haskell-language-server = lib.subtractLists [ ··· 526 532 compilerNames.ghc8107 527 533 # Support ceased as of 2.5.0.0 528 534 compilerNames.ghc902 535 + # No support yet (2024-05-12) 536 + compilerNames.ghc9101 529 537 ] released; 530 538 hoogle = lib.subtractLists [ 531 539 compilerNames.ghc981 532 540 compilerNames.ghc982 541 + compilerNames.ghc9101 533 542 ] released; 534 543 hlint = lib.subtractLists [ 535 544 compilerNames.ghc902 536 545 compilerNames.ghc981 537 546 compilerNames.ghc982 547 + compilerNames.ghc9101 538 548 ] released; 539 549 hpack = lib.subtractLists [ 540 550 compilerNames.ghc981 541 551 compilerNames.ghc982 552 + compilerNames.ghc9101 542 553 ] released; 543 554 hsdns = released; 544 555 jailbreak-cabal = released; 545 556 language-nix = lib.subtractLists [ 546 557 compilerNames.ghc981 547 558 compilerNames.ghc982 559 + compilerNames.ghc9101 548 560 ] released; 549 561 large-hashable = [ 550 562 compilerNames.ghc928 ··· 553 565 titlecase = lib.subtractLists [ 554 566 compilerNames.ghc981 555 567 compilerNames.ghc982 568 + compilerNames.ghc9101 556 569 ] released; 557 570 ghc-api-compat = [ 558 571 compilerNames.ghc8107 ··· 564 577 ghc-lib = lib.subtractLists [ 565 578 compilerNames.ghc981 566 579 compilerNames.ghc982 580 + compilerNames.ghc9101 567 581 ] released; 568 582 ghc-lib-parser = lib.subtractLists [ 569 583 compilerNames.ghc981 570 584 compilerNames.ghc982 585 + compilerNames.ghc9101 571 586 ] released; 572 587 ghc-lib-parser-ex = lib.subtractLists [ 573 588 compilerNames.ghc981 574 589 compilerNames.ghc982 590 + compilerNames.ghc9101 575 591 ] released; 576 592 ghc-source-gen = [ 577 593 # Feel free to remove these as they break, ··· 588 604 hashable = lib.subtractLists [ 589 605 compilerNames.ghc981 590 606 compilerNames.ghc982 607 + compilerNames.ghc9101 591 608 ] released; 592 - primitive = released; 609 + primitive = lib.subtractLists released [ 610 + compilerNames.ghc9101 611 + ]; 593 612 weeder = lib.subtractLists [ 594 613 compilerNames.ghc981 595 614 compilerNames.ghc982 615 + compilerNames.ghc9101 596 616 ] released; 597 617 }) 598 618 {