flake.nix: Add RUST_SRC_PATH for rust-analyzer
This commit is contained in:
parent
9efcaae9a0
commit
97215faa9c
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
|||
};
|
||||
rust-toolchain = fenix.packages."${system}".stable.defaultToolchain;
|
||||
rust-analyzer = fenix.packages."${system}".stable.rust-analyzer;
|
||||
rust-src = fenix.packages."${system}".stable.rust-src;
|
||||
naersk-lib = naersk.lib.${system}.override {
|
||||
cargo = rust-toolchain;
|
||||
rustc = rust-toolchain;
|
||||
|
|
@ -42,6 +43,9 @@
|
|||
rust-analyzer
|
||||
rust-toolchain
|
||||
];
|
||||
shellHook = ''
|
||||
export RUST_SRC_PATH="${rust-src}/lib/rustlib/src/rust/library"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue