forked from DGNum/colmena
flake.nix: add RUST_SRC_PATH for rust-analyzer
Allow for a rust-analyzer language server running in the devshell to access the same rust sources used to build the package.
This commit is contained in:
parent
6e2d221388
commit
7681d26689
1 changed files with 3 additions and 3 deletions
|
@ -58,14 +58,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
|
RUST_SRC_PATH = "${pkgs.rustPlatform.rustcSrc}/library";
|
||||||
|
NIX_PATH = "nixpkgs=${pkgs.path}";
|
||||||
|
|
||||||
inputsFrom = [ defaultPackage packages.manualFast ];
|
inputsFrom = [ defaultPackage packages.manualFast ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
python3 editorconfig-checker
|
python3 editorconfig-checker
|
||||||
clippy rust-analyzer cargo-outdated
|
clippy rust-analyzer cargo-outdated
|
||||||
];
|
];
|
||||||
shellHook = ''
|
|
||||||
export NIX_PATH=nixpkgs=${pkgs.path}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
overlay = final: prev: {
|
overlay = final: prev: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue