Skip to content

Commit

Permalink
Fix hls
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed May 7, 2024
1 parent ec32a81 commit 01bddcc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nix/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ haskell-nix.cabalProject' (
};
shell = {
crossPlatforms = p: lib.optional (compareGhc "9.0" < 0) p.ghcjs;
tools = lib.optionalAttrs (compareGhc "9.8" < 0) {
haskell-language-server.src = haskell-nix.sources."hls-2.2";
tools = {
haskell-language-server.src =
if compareGhc "9" < 0
then haskell-nix.sources."hls-2.2"
else haskell-nix.sources."hls-2.7";
};
nativeBuildInputs = with pkgs.pkgsBuildBuild; [ nodejs nixWrapped cabalWrapped ];
packages = ps:
Expand Down

0 comments on commit 01bddcc

Please sign in to comment.