mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-23 22:19:33 +01:00
add rust-analyzer
This commit is contained in:
parent
2343f1b5a9
commit
c2cbe2b139
@ -1,8 +1,21 @@
|
|||||||
|
# We use the unofficial overlay oxalica/rust-overlay
|
||||||
|
# https://nixos.wiki/wiki/Rust#Unofficial_overlays
|
||||||
|
|
||||||
|
# Example for oxalica/rust-overlay
|
||||||
|
# https://nixos.wiki/wiki/Rust#Custom_Rust_version
|
||||||
|
|
||||||
|
# rust-analyzer
|
||||||
|
# https://rust-analyzer.github.io/
|
||||||
|
# rust-analyzer is an implementation of Language Server Protocol for the Rust programming language. It provides features like completion and goto definition for many code editors, including VS Code, Emacs and Vim.
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
#rustVersion = pkgs.rust-bin.stable."1.81.0".default.override {
|
#rustVersion = pkgs.rust-bin.stable."1.81.0".default.override {
|
||||||
rustVersion = pkgs.rust-bin.stable.latest.default.override {
|
rustVersion = pkgs.rust-bin.stable.latest.default.override {
|
||||||
extensions = [ "rust-src" ];
|
extensions = [
|
||||||
|
"rust-src"
|
||||||
|
"rust-analyzer"
|
||||||
|
];
|
||||||
#targets = [
|
#targets = [
|
||||||
# "x86_64-unknown-linux-musl"
|
# "x86_64-unknown-linux-musl"
|
||||||
# #"arm-unknown-linux-gnueabihf"
|
# #"arm-unknown-linux-gnueabihf"
|
||||||
|
Loading…
Reference in New Issue
Block a user