From a1be15809f836310d1bf5a33a53b8311a4c3de72 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 28 Jan 2021 10:48:43 -0500 Subject: [PATCH] fix rust-analyzer Signed-off-by: Christine Dodrill --- shell.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index af22215..59bbdc9 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,7 @@ let sources = import ./nix/sources.nix; - pkgs = import sources.nixpkgs { }; + pkgs = + import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; }; dhallpkgs = import sources.easy-dhall-nix { inherit pkgs; }; dhall-yaml = dhallpkgs.dhall-yaml-simple; dhall = dhallpkgs.dhall-simple; @@ -33,5 +34,7 @@ mkShell { CLACK_SET = "Ashlynn,Terry Davis,Dennis Ritchie"; RUST_LOG = "debug"; RUST_BACKTRACE = "1"; + RUST_SRC_PATH = + "${pkgs.latest.rustChannels.nightly.rust-src}/lib/rustlib/src/rust/library"; GITHUB_SHA = "devel"; }