Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Jul 15, 2024
1 parent 9eea816 commit 5581676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# see flake `variants` below for alternative compilers
defaultCompiler = "ghc982";
haddockShellCompiler = defaultCompiler;
mingwVersion = "ghc965";
mingwCompiler = "ghc965";

cabalHeadOverlay = final: prev: {
cabal-head =
Expand Down Expand Up @@ -83,7 +83,7 @@

# we also want cross compilation to windows on linux (and only with default compiler).
crossPlatforms = p:
lib.optional (system == "x86_64-linux" && config.compiler-nix-name == mingwVersion)
lib.optional (system == "x86_64-linux" && config.compiler-nix-name == mingwCompiler)
p.mingwW64;

# CHaP input map, so we can find CHaP packages (needs to be more
Expand Down Expand Up @@ -152,7 +152,7 @@
flake = cabalProject.flake (
lib.optionalAttrs (system == "x86_64-linux") {
# on linux, build/test other supported compilers
variants = lib.genAttrs ["ghc8107" mingwVersion] (compiler-nix-name: {
variants = lib.genAttrs ["ghc8107" mingwCompiler] (compiler-nix-name: {
inherit compiler-nix-name;
});
}
Expand Down

0 comments on commit 5581676

Please sign in to comment.