|
3 | 3 |
|
4 | 4 | inputs = { |
5 | 5 |
|
6 | | - # Remove this once we no longer need GHC 8.10.7. |
| 6 | + ########################################################################### |
| 7 | + # We pin the versions of haskell.nix and hackage.nix because |
| 8 | + # - Cross compilation for windows is broken in newer versions. |
| 9 | + # - plutus-preprocessor is a non-buildable package and it seems to be treated differently in newer versions. |
| 10 | + # We should unpin this once we no longer need it by specifying only haskell.nix and let it use its own default hackage.nix |
| 11 | + # haskellNix.url = "github:input-output-hk/haskell.nix"; |
7 | 12 | hackageNix = { |
8 | 13 | url = "github:input-output-hk/hackage.nix?ref=for-stackage"; |
9 | 14 | flake = false; |
10 | 15 | }; |
11 | 16 | haskellNix = { |
12 | | - # GHC 8.10.7 cross compilation for windows is broken in newer versions of haskell.nix. |
13 | | - # Unpin this once we no longer need GHC 8.10.7. |
14 | 17 | url = "github:input-output-hk/haskell.nix/a0283c855a38ed70ba521f7a9290e78488ddf11b"; |
15 | 18 | inputs.hackage.follows = "hackageNix"; |
16 | 19 | }; |
| 20 | + ########################################################################### |
17 | 21 |
|
18 | 22 | nixpkgs.follows = "haskellNix/nixpkgs-unstable"; |
19 | 23 | iohkNix.url = "github:input-output-hk/iohk-nix"; |
|
201 | 205 | cabalProject.flake ( |
202 | 206 | lib.optionalAttrs (system == "x86_64-linux") { |
203 | 207 | # on linux, build/test other supported compilers |
204 | | - variants = lib.genAttrs ["ghc8107" "ghc9121"] (compiler-nix-name: { |
| 208 | + variants = lib.genAttrs ["ghc928" "ghc9121"] (compiler-nix-name: { |
205 | 209 | inherit compiler-nix-name; |
206 | 210 | }); |
207 | 211 | } |
|
282 | 286 | }; |
283 | 287 | in |
284 | 288 | mkDevShells cabalProject |
285 | | - # Additional shells for every GHC version supported by haskell.nix, eg. `nix develop .#ghc8107` |
| 289 | + # Additional shells for every GHC version supported by haskell.nix, eg. `nix develop .#ghc9121` |
286 | 290 | // lib.mapAttrs (compiler-nix-name: _: let |
287 | 291 | p = cabalProject.appendModule {inherit compiler-nix-name;}; |
288 | 292 | in |
|
0 commit comments