From ca3ee2e2a55c9c85ab8c374569beb5f3abe70d74 Mon Sep 17 00:00:00 2001 From: Squirrel <gilescope@gmail.com> Date: Tue, 27 Jul 2021 11:00:06 +0100 Subject: [PATCH] IDEs like rust-src (#9443) Co-authored-by: Giles Cope <giles.cope@gmail.com> --- substrate/shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/substrate/shell.nix b/substrate/shell.nix index 73453fc66da..03c95f56fc5 100644 --- a/substrate/shell.nix +++ b/substrate/shell.nix @@ -7,6 +7,7 @@ let }); nixpkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; }; rust-nightly = with nixpkgs; ((rustChannelOf { date = "2021-07-06"; channel = "nightly"; }).rust.override { + extensions = [ "rust-src" ]; targets = [ "wasm32-unknown-unknown" ]; }); in @@ -19,6 +20,7 @@ with nixpkgs; pkgs.mkShell { darwin.apple_sdk.frameworks.Security ]; + RUST_SRC_PATH="${rust-nightly}/lib/rustlib/src/rust/src"; LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; PROTOC = "${protobuf}/bin/protoc"; ROCKSDB_LIB_DIR = "${rocksdb}/lib"; -- GitLab