IDEs like rust-src (#9443)

Co-authored-by: Giles Cope <giles.cope@gmail.com>
This commit is contained in:
Squirrel
2021-07-27 11:00:06 +01:00
committed by GitHub
parent 6b75ec92a7
commit ca3ee2e2a5
+2
View File
@@ -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";