-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/init_options
- Loading branch information
Showing
9 changed files
with
148 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
/.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
description = '' | ||
Language server proxy which enables sharing a single language server, | ||
like rust-analyzer, between multiple LSP clients (editor windows). | ||
''; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
rust-overlay.url = "github:oxalica/rust-overlay"; | ||
utils.url = "github:numtide/flake-utils"; | ||
|
||
rust-overlay.inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, rust-overlay, utils }: | ||
utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [(import rust-overlay)]; | ||
}; | ||
|
||
rustToolchain = pkgs.rust-bin.stable."1.80.1".minimal; | ||
rustPlatform = pkgs.makeRustPlatform { | ||
cargo = rustToolchain; | ||
rustc = rustToolchain; | ||
}; | ||
|
||
rustDev = rustToolchain.override { | ||
extensions = ["rust-src" "rust-analyzer" "rust-docs" "clippy"]; | ||
}; | ||
# We want to use some unstable options in `rustfmt.toml` and | ||
# unfortunately the only way to do that is use nightly rustfmt. | ||
rustFmt = pkgs.rust-bin.nightly."2024-07-07".minimal.override { | ||
extensions = ["rustfmt"]; | ||
}; | ||
in { | ||
packages.default = rustPlatform.buildRustPackage { | ||
pname = "ra-multiplex"; | ||
version = "0.2.5"; | ||
src = self; | ||
cargoLock.lockFile = ./Cargo.lock; | ||
}; | ||
devShells.default = pkgs.mkShell { | ||
nativeBuildInputs = [ | ||
rustDev | ||
rustFmt | ||
]; | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters