Skip to content

Commit

Permalink
build only GHC 9.6 and 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Jun 10, 2024
1 parent b4f6078 commit 81b67f3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions nix/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,16 @@ haskell-nix.cabalProject' (
--sha256: sha256-Ywd/TCIcArFB7ovMaO+SzbPaQeMwMtF3ux/Q0b7bXkM=
'';

compiler-nix-name = "ghc92";
compiler-nix-name = "ghc96";
flake = {
variants = {
ghc810.compiler-nix-name = lib.mkForce "ghc810";
ghc96.compiler-nix-name = lib.mkForce "ghc96";
ghc98.compiler-nix-name = lib.mkForce "ghc98";
ghc910.compiler-nix-name = lib.mkForce "ghc910";
};
crossPlatforms = p: with p;
lib.optional (!builtins.elem config.compiler-nix-name ["ghc928"]) ghcjs ++
lib.optional (system == "x86_64-linux") ghcjs ++
lib.optional (system == "x86_64-linux") musl64 ++
lib.optional (system == "x86_64-linux" && !builtins.elem config.compiler-nix-name ["ghc982" "ghc9101"]) mingwW64 ++
lib.optional (system == "x86_64-linux" && builtins.elem config.compiler-nix-name ["ghc982" "ghc9101"]) ucrt64;
lib.optional (system == "x86_64-linux" && builtins.elem config.compiler-nix-name ["ghc96"]) mingwW64 ++
lib.optional (system == "x86_64-linux" && builtins.elem config.compiler-nix-name ["ghc96"]) ucrt64;
};
shell = {
crossPlatforms = p: lib.optional (compareGhc "9.0" < 0) p.ghcjs;
Expand Down

0 comments on commit 81b67f3

Please sign in to comment.