fixup! feat(shell.nix): enable rust extensions in VS Code

[skip_ci]
mmilata/nix_shell_rust_vscode_support
Martin Milata 2 years ago
parent c8743da083
commit e0735b5645

@ -28,7 +28,8 @@ let
${nixpkgs.patchelf}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out"
chmod -w $out
'';
rustStable = nixpkgs.rust-bin.stable."1.58.1".minimal.override {
rustProfiles = nixpkgs.rust-bin.stable."1.58.1";
rustStable = rustProfiles.minimal.override {
targets = [
"thumbv7em-none-eabihf" # TT
"thumbv7m-none-eabi" # T1
@ -128,7 +129,7 @@ stdenvNoCC.mkDerivation ({
hardeningDisable = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "stackprotector" ];
# Enabling rust-analyzer extension in VSCode
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
RUST_SRC_PATH = "${rustProfiles.rust-src}/lib/rustlib/src/rust/library";
} // (lib.optionalAttrs fullDeps) {
TREZOR_MONERO_TESTS_PATH = moneroTestsPatched;

Loading…
Cancel
Save