mirror of
https://github.com/zhaofengli/colmena.git
synced 2024-10-03 20:57:33 +03:00
Bundle rust-analyzer in dev environment
The user's rust-analyzer may be of the wrong version.
This commit is contained in:
parent
f92236da46
commit
2aeab62880
@ -52,7 +52,7 @@
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
inputsFrom = [ defaultPackage ];
|
||||
packages = with pkgs; [ clippy mdbook python3 ];
|
||||
packages = with pkgs; [ clippy mdbook python3 rust-analyzer ];
|
||||
shellHook = ''
|
||||
export NIX_PATH=nixpkgs=${pkgs.path}
|
||||
'';
|
||||
|
4
nix/rust-analyzer.sh
Executable file
4
nix/rust-analyzer.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash ../shell.nix
|
||||
|
||||
exec rust-analyzer "$@"
|
Loading…
Reference in New Issue
Block a user