Skip to content

Get haskell-language-server for the hls shell: update miso, use its cachix - #32

Merged
dmjio merged 1 commit into
mainfrom
flake-update-hls-cachix
Oct 28, 2026
Merged

dmjio merged 1 commit into
mainfrom
flake-update-hls-cachix

Conversation

@dmjio

@dmjio dmjio commented Oct 28, 2026

Copy link
Copy Markdown
Member

Fixes #30: nix develop .#hls now gives you haskell-language-server for GHC 9.14.1, prebuilt.

  • flake.lock: miso updated to 235c6b26, 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's hls shell. The old lock failed configuring hie-compat (base <4.22).
  • flake.nix: adds miso's cachix (haskell-miso-cachix) as nixConfig.
    • A flake's nixConfig only applies to the flake you run, not to its inputs.
    • So without this, nix develop .#hls here would build HLS from source, which takes about 1h40m on CI.
    • With it, the shell is a download only.

Tested

  • Dry run of 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.
  • In the shell: haskell-language-server-wrapper --version reports 2.13.0.0 (GHC: 9.14.1), and haskell-language-server-wrapper typecheck app/Main.hs gives Completed (1 file worked, 0 files failed).

The first time you run nix develop .#hls, nix asks whether to trust the haskell-miso-cachix substituter; answer yes to use it.


🤖 Generated with Claude Code

…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>
@dmjio
dmjio merged commit ff9f2b6 into main Oct 28, 2026
1 check passed
@dmjio
dmjio deleted the flake-update-hls-cachix branch October 28, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

devShell for hls doesn't work

1 participant