Repository navigation
Get haskell-language-server for the hls shell: update miso, use its cachix - #32
Merged
Merged
Conversation
…achix - flake.lock: miso to 235c6b26, which builds haskell-language-server for GHC 9.14.1 in the hls shell (dmjio/miso#1687). Before, nix develop .#hls failed configuring hie-compat (base <4.22). - flake.nix: miso's cachix as nixConfig. A flake's nixConfig only applies to the flake you run, not to its inputs, so without it the hls shell would build HLS from source (about 1h40m on CI). With it, nix develop .#hls only downloads (358 MiB). Fixes #30. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #30:
nix develop .#hlsnow gives you haskell-language-server for GHC 9.14.1, prebuilt.flake.lock: miso updated to235c6b26, which includes nix: build HLS for GHC 9.14 for the hls shell (own package set), and build it in CI dmjio/miso#1687. That PR builds HLS for GHC 9.14.1 in miso'shlsshell. The old lock failed configuringhie-compat(base <4.22).flake.nix: adds miso's cachix (haskell-miso-cachix) asnixConfig.nixConfigonly applies to the flake you run, not to its inputs.nix develop .#hlshere would build HLS from source, which takes about 1h40m on CI.Tested
nix develop .#hls: nothing to build, 229 paths to fetch (358 MiB). HLS is/nix/store/8h3inp2r…-haskell-language-server-2.13.0.0, the same path miso's CI built and pushed to cachix.haskell-language-server-wrapper --versionreports2.13.0.0 (GHC: 9.14.1), andhaskell-language-server-wrapper typecheck app/Main.hsgivesCompleted (1 file worked, 0 files failed).The first time you run
nix develop .#hls, nix asks whether to trust thehaskell-miso-cachixsubstituter; answer yes to use it.🤖 Generated with Claude Code