From 38c965e7df44a88a3da06e71a1364786cb8dfa00 Mon Sep 17 00:00:00 2001 From: dmjio Date: Wed, 28 Oct 2026 16:41:44 -0500 Subject: [PATCH] Get haskell-language-server for the hls shell: update miso, use its cachix - 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) --- flake.lock | 6 +++--- flake.nix | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index ccf48c6..9b502e7 100644 --- a/flake.lock +++ b/flake.lock @@ -64,11 +64,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1790876521, - "narHash": "sha256-PSREqoUN7Tnpi50Kgnv9xN8Yk5Pd2aNkMnz65u7LzZE=", + "lastModified": 1793223434, + "narHash": "sha256-+A+l8A1lWjG8gNJGVjovlCcOCK5HDOWPLSIngAJucaA=", "owner": "dmjio", "repo": "miso", - "rev": "4ebc461f6379932cc95fc56b85a4cf5ff2288fde", + "rev": "235c6b2614d05ea9878040951d0440e60d7469fa", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 0fcb5ff..1306fa8 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,18 @@ { + # Miso's cachix cache, so that the dev shells (e.g. haskell-language-server + # in .#hls) are downloaded prebuilt instead of built from source. A flake's + # nixConfig only applies to the flake you run, not to its inputs, so this + # repeats miso's. + nixConfig = { + extra-substituters = [ + "https://haskell-miso-cachix.cachix.org" + ]; + extra-trusted-public-keys = [ + "haskell-miso-cachix.cachix.org-1:m8hN1cvFMJtYib4tj+06xkKt5ABMSGfe8W7s40x1kQ0=" + ]; + }; + inputs = { miso.url = "github:dmjio/miso"; };