Skip to content

Commit 372f778

Browse files
authored
Fix short compiler-nix-names (#2197)
1 parent c8b4b5b commit 372f778

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/cabal-project.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ in {
1717
compiler-nix-name = mkOption {
1818
type = str;
1919
description = "The name of the ghc compiler to use eg. \"ghc884\"";
20+
# Map short version names to the latest GHC version.
21+
# TODO: perhaps combine this with the `latestVer` mapping in `overlays/boostrap.nix`.
22+
apply = name: pkgs.haskell-nix.resolve-compiler-name name;
2023
};
2124
compilerSelection = mkOption {
2225
type = unspecified;

0 commit comments

Comments
 (0)