diff --git a/flake.nix b/flake.nix index 4dff6e68b..96e419dc3 100644 --- a/flake.nix +++ b/flake.nix @@ -157,7 +157,11 @@ cabal = "3.10.3.0"; ghcid = "0.8.8"; haskell-language-server = { - src = nixpkgs.haskell-nix.sources."hls-1.10"; + src = + if config.compiler-nix-name == "ghc8107" then + nixpkgs.haskell-nix.sources."hls-1.10" + else + nixpkgs.haskell-nix.sources."hls-2.7"; }; }; # Now we use pkgsBuildBuild, to make sure that even in the cross