From b0a9a9ba5b2a45abe754caaa9a320bcd26f83ade Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 14 Nov 2025 21:45:23 +0300 Subject: [PATCH] nix: use nightly rustfmt; fix environment passthru Signed-off-by: NotAShelf Change-Id: I8206f2730367f04beb908c27c552704c6a6a6964 --- nix/shell.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/nix/shell.nix b/nix/shell.nix index fcda3a5..4584b59 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -1,22 +1,26 @@ { mkShell, - rust-analyzer, + rustc, + cargo, rustfmt, clippy, - cargo, taplo, + rust-analyzer-unwrapped, rustPlatform, }: mkShell { name = "rust"; + packages = [ - rust-analyzer - rustfmt - clippy + rustc cargo + (rustfmt.override {asNightly = true;}) + clippy + cargo taplo + rust-analyzer-unwrapped ]; - RUST_SRC_PATH = "${rustPlatform.rustLibSrc}"; + env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}"; }