1818
1919 # short names for nixpkgs versions
2020 nixpkgsVersions = {
21- "R2505 " = inputs . nixpkgs-2505 ;
21+ "R2511 " = inputs . nixpkgs-2511 ;
2222 "unstable" = inputs . nixpkgs-unstable ;
2323 } ;
2424
6464 # cabal-install and nix-tools plans. When removing a ghc version
6565 # from here (so that is no longer cached) also remove ./materialized/ghcXXX.
6666 # Update supported-ghc-versions.md to reflect any changes made here.
67- nixpkgs . lib . optionalAttrs ( builtins . elem nixpkgsName [ "R2411" "R2505" ] ) {
67+ nixpkgs . lib . optionalAttrs ( builtins . elem nixpkgsName [ "R2411" "R2505" "R2511" ] ) {
6868 ghc96 = false ;
6969 ghc98 = false ;
70- ghc98llvm = false ;
7170 ghc910 = false ;
72- ghc910llvm = false ;
7371 ghc912 = false ;
7472 } // nixpkgs . lib . optionalAttrs ( nixpkgsName == "unstable" ) {
7573 ghc96 = true ;
9391 inherit ( lib . systems . examples ) ghcjs ;
9492 } // lib . optionalAttrs ( nixpkgsName == "unstable"
9593 && ( __match ".*llvm" compiler-nix-name == null )
96- && ! builtins . elem compiler-nix-name [ "ghc967" "ghc984" "ghc9102" " ghc9103"]
94+ && ! builtins . elem compiler-nix-name [ "ghc967" "ghc984" "ghc9103" ]
9795 && system != "x86_64-darwin" ) {
9896 inherit ( lib . systems . examples ) wasi32 ;
9997 } // lib . optionalAttrs ( nixpkgsName == "unstable"
113111 } // lib . optionalAttrs ( __match ".*llvm" compiler-nix-name == null && system == "x86_64-linux" && nixpkgsName == "unstable" && ! builtins . elem compiler-nix-name [ "ghc902" "ghc928" "ghc948" ] ) {
114112 # Out llvm versions of GHC seem to break for musl32
115113 inherit ( lib . systems . examples ) musl32 ;
116- } // lib . optionalAttrs ( system == "x86_64-linux" && ! builtins . elem compiler-nix-name [ "ghc902" "ghc928" "ghc948" ] ) {
114+ } // lib . optionalAttrs ( system == "x86_64-linux"
115+ && ! builtins . elem compiler-nix-name [ "ghc967" "ghc984" "ghc9103" ] ) {
117116 inherit ( lib . systems . examples ) aarch64-android-prebuilt ;
118- } // lib . optionalAttrs ( system == "x86_64-linux" && nixpkgsName != "unstable" && ! builtins . elem compiler-nix-name [ "ghc902" "ghc928" "ghc948" "ghc9103" "ghc9103llvm" "ghc91320250523" ] ) {
117+ } // lib . optionalAttrs ( system == "x86_64-linux"
118+ && nixpkgsName != "unstable"
119+ && ! builtins . elem compiler-nix-name [ "ghc967" "ghc984" "ghc9103" "ghc91320250523" ] ) {
119120 inherit ( lib . systems . examples ) armv7a-android-prebuilt ;
120121 } // lib . optionalAttrs ( system == "x86_64-linux" && nixpkgsName == "unstable" && ! builtins . elem compiler-nix-name [ "ghc8107" "ghc902" ] ) {
121122 # TODO fix this for the compilers we build with hadrian (ghc >=9.4)
@@ -134,7 +135,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
134135 in filterAttrsOnlyRecursive ( _ : v : platformFilter v && ! ( isDisabled v ) ) ( {
135136 # Native builds
136137 # TODO: can we merge this into the general case by picking an appropriate "cross system" to mean native?
137- native = pkgs . recurseIntoAttrs ( {
138+ native = pkgs . lib . recurseIntoAttrs ( {
138139 roots = pkgs . haskell-nix . roots' { inherit compiler-nix-name evalPackages ; } ifdLevel ;
139140 } // pkgs . lib . optionalAttrs runTests {
140141 inherit ( build ) tests tools maintainer-scripts maintainer-script-cache ;
@@ -156,7 +157,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
156157 then import pinnedNixpkgsSrc ( nixpkgsArgs // { inherit system crossSystem ; } )
157158 else crossSystem ( import pinnedNixpkgsSrc ( nixpkgsArgs // { inherit system ; } ) ) ;
158159 build = import ./build.nix { inherit pkgs evalPackages ifdLevel compiler-nix-name haskellNix ; } ;
159- in pkgs . recurseIntoAttrs ( pkgs . lib . optionalAttrs ( ifdLevel >= 1 ) ( {
160+ in pkgs . lib . recurseIntoAttrs ( pkgs . lib . optionalAttrs ( ifdLevel >= 1 ) ( {
160161 roots = pkgs . haskell-nix . roots' { inherit compiler-nix-name evalPackages ; } ifdLevel // {
161162 ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { ghcEvalPackages = evalPackages ; } ;
162163 } ;
0 commit comments