|
34 | 34 | defaultCompiler = "ghc984"; |
35 | 35 | # Used for cross compilation, and so referenced in .github/workflows/release-upload.yml. Adapt the |
36 | 36 | # latter if you change this value. |
37 | | - crossCompilerVersion = "ghc967"; |
| 37 | + crossCompilerVersionUcrt64 = "ghc9122"; |
| 38 | + crossCompilerVersionMusl = "ghc967"; |
38 | 39 | in |
39 | 40 | {inherit (inputs) incl;} |
40 | 41 | // inputs.flake-utils.lib.eachSystem supportedSystems ( |
|
134 | 135 |
|
135 | 136 | # we also want cross compilation to windows on linux (and only with default compiler). |
136 | 137 | crossPlatforms = p: |
137 | | - lib.optionals (system == "x86_64-linux" && config.compiler-nix-name == crossCompilerVersion) |
138 | | - [ |
139 | | - p.ucrt64 # x86_64-windows |
140 | | - p.aarch64-multiplatform-musl # aarch64-linux (static) |
141 | | - p.musl64 # x86_64-linux (static) |
142 | | - ]; |
| 138 | + ( |
| 139 | + lib.optionals (system == "x86_64-linux" && config.compiler-nix-name == crossCompilerVersionUcrt64) |
| 140 | + [ |
| 141 | + p.ucrt64 # x86_64-windows |
| 142 | + ] |
| 143 | + ) |
| 144 | + ++ (lib.optionals (system == "x86_64-linux" && config.compiler-nix-name == crossCompilerVersionMusl) |
| 145 | + [ |
| 146 | + p.aarch64-multiplatform-musl # aarch64-linux (static) |
| 147 | + p.musl64 # x86_64-linux (static) |
| 148 | + ]); |
143 | 149 |
|
144 | 150 | # CHaP input map, so we can find CHaP packages (needs to be more |
145 | 151 | # recent than the index-state we set!). Can be updated with |
|
301 | 307 | flake = cabalProject.flake ( |
302 | 308 | lib.optionalAttrs (system == "x86_64-linux") { |
303 | 309 | # on linux, build/test other supported compilers |
304 | | - variants = lib.genAttrs [crossCompilerVersion] (compiler-nix-name: { |
| 310 | + variants = lib.genAttrs [crossCompilerVersionMusl crossCompilerVersionUcrt64] (compiler-nix-name: { |
305 | 311 | inherit compiler-nix-name; |
306 | 312 | }); |
307 | 313 | } |
|
0 commit comments