1111 "9.4" = "9.4.8" ;
1212 "9.6" = "9.6.5" ;
1313 "9.8" = "9.8.2" ;
14+ "9.10" = "9.10.1" ;
1415 } ;
1516 gitInputs = {
16- ghc910X = "9.10.0" ;
1717 ghc911 = "9.11" ;
1818 } ;
1919 versionToNixName = v : "ghc${ builtins . replaceStrings [ "." ] [ "" ] v } " ;
279279 ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.8" && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols.patch
280280 ++ final . lib . optional ( versionAtLeast "9.6" && versionLessThan "9.8" && ( final . stdenv . targetPlatform . isWindows || final . stdenv . targetPlatform . isMusl ) ) ./patches/ghc/ghc-9.6-0006-Adds-support-for-Hidden-symbols-2.patch
281281 ++ fromUntil "9.9" "9.12" ./patches/ghc/ghc-9.9-Cabal-3.11.patch
282+ ++ fromUntil "9.8" "9.9" ./patches/ghc/ghc-9.8-text-upper-bound.patch
282283 ++ fromUntil "9.10" "9.12" ./patches/ghc/ghc-9.10-containers-upper-bound.patch
283284 ++ fromUntil "9.10" "9.12" ./patches/ghc/ghc-9.10-merge-objects.patch
284285 ;
@@ -1123,6 +1124,35 @@ in {
11231124
11241125 ghc-patches = ghc-patches "9.8.2" ;
11251126 } ) ;
1127+ ghc9101 = final . callPackage ../compiler/ghc ( traceWarnOld "9.10" {
1128+ extra-passthru = { buildGHC = final . buildPackages . haskell-nix . compiler . ghc9101 ; } ;
1129+
1130+ bootPkgs = bootPkgsGhc94 // {
1131+ ghc = if final . stdenv . buildPlatform != final . stdenv . targetPlatform
1132+ then final . buildPackages . buildPackages . haskell-nix . compiler . ghc9101
1133+ else final . buildPackages . buildPackages . haskell . compiler . ghc982
1134+ or final . buildPackages . buildPackages . haskell . compiler . ghc981
1135+ or final . buildPackages . buildPackages . haskell . compiler . ghc965
1136+ or final . buildPackages . buildPackages . haskell . compiler . ghc964
1137+ or final . buildPackages . buildPackages . haskell . compiler . ghc963
1138+ or final . buildPackages . buildPackages . haskell . compiler . ghc962
1139+ or final . buildPackages . buildPackages . haskell . compiler . ghc945
1140+ or final . buildPackages . buildPackages . haskell . compiler . ghc944
1141+ or final . buildPackages . buildPackages . haskell . compiler . ghc943 ;
1142+ } ;
1143+ inherit sphinx ;
1144+
1145+ buildLlvmPackages = final . buildPackages . llvmPackages_12 ;
1146+ llvmPackages = final . llvmPackages_12 ;
1147+
1148+ src-spec = rec {
1149+ version = "9.10.1" ;
1150+ url = "https://downloads.haskell.org/~ghc/${ version } /ghc-${ version } -src.tar.xz" ;
1151+ sha256 = "sha256-vzhqMC1O4FR5H/1RdIkA8V1xdg/RmRV5ItEgzB+J4vc=" ;
1152+ } ;
1153+
1154+ ghc-patches = ghc-patches "9.10.1" ;
1155+ } ) ;
11261156 } // ( __listToAttrs ( final . lib . mapAttrsToList ( source-name : ver :
11271157 let
11281158 src = final . haskell-nix . sources . ${ source-name } ;
@@ -1136,7 +1166,7 @@ in {
11361166
11371167 bootPkgs = bootPkgsGhc94 // {
11381168 ghc = if final . stdenv . buildPlatform != final . stdenv . targetPlatform
1139- then final . buildPackages . buildPackages . haskell-nix . compiler . ghc982 # TODO use ${compiler-nix-name}
1169+ then final . buildPackages . buildPackages . haskell-nix . compiler . ghc9101 # TODO use ${compiler-nix-name}
11401170 else final . buildPackages . buildPackages . haskell . compiler . ghc982
11411171 or final . buildPackages . buildPackages . haskell . compiler . ghc981
11421172 or final . buildPackages . buildPackages . haskell . compiler . ghc965
0 commit comments