From 0adadddb7fdf9006f1d1e2d629c0407d67031a2c Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 26 Jun 2023 14:59:37 -0400 Subject: [PATCH] nix: set RUST_SRC_PATH Resolves #19 --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index c7a1aaf..6037a7c 100644 --- a/flake.nix +++ b/flake.nix @@ -47,8 +47,13 @@ config.mission-control.devShell config.flake-root.devShell ]; + shellHook = '' + # For rust-analyzer 'hover' tooltips to work. + export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc} + ''; nativeBuildInputs = [ pkgs.cargo-watch + pkgs.rust-analyzer ]; };