mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 08:45:35 +03:00
avoid hard-coding the default compiler
This commit is contained in:
parent
2fe1447710
commit
d286ae810d
@ -10,8 +10,9 @@
|
||||
}:
|
||||
with nixpkgs;
|
||||
|
||||
let haskellPackagesForProject = p:
|
||||
if compiler == "default" || compiler == "ghc883"
|
||||
let defaultCompiler = "ghc" + lib.replaceStrings ["."] [""] haskellPackages.ghc.version;
|
||||
haskellPackagesForProject = p:
|
||||
if compiler == "default" || compiler == defaultCompiler
|
||||
then haskellPackages.ghcWithPackages p
|
||||
# for all other compilers there is no Nix cache so dont bother building deps with NIx
|
||||
else haskell.packages.${compiler}.ghcWithPackages [];
|
||||
|
Loading…
Reference in New Issue
Block a user