From 3c8894a59aea85a1bc03d1d035aa9f9be4645acb Mon Sep 17 00:00:00 2001 From: tinger Date: Sun, 22 Jun 2025 17:52:30 +0200 Subject: [PATCH] Add rust-analyzer to flake devShell This ensures that a system toolchain rust-analzyer doesn't blow the cargo cache in cases where it differs from flake's toolchain version. Most notably, running tests would require a rebuild on a nix system with rust-analyzer having a different version of that in the devShell. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 1b2b3abc8..cc5f96273 100644 --- a/flake.nix +++ b/flake.nix @@ -127,6 +127,10 @@ checks = self'.checks; inputsFrom = [ typst ]; + buildInputs = with pkgs; [ + rust-analyzer + ]; + packages = [ # A script for quickly running tests. # See https://github.com/typst/typst/blob/main/tests/README.md#making-an-alias