Skip to content

Commit

Permalink
Merge pull request #19 from huuff/18-use-rust-analyzer-from-the-rust-…
Browse files Browse the repository at this point in the history
…overlay

fix: rust-analyzer from rust-overlay
  • Loading branch information
huuff authored Nov 11, 2024
2 parents fe1b2a1 + 2738043 commit 902c8d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion leptos/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustPkgs = pkgs.rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rust-analyzer"
];
targets = [
"x86_64-unknown-linux-musl"
"wasm32-unknown-unknown"
Expand Down Expand Up @@ -79,7 +83,6 @@
nixfmt-rfc-style

rustPkgs
rust-analyzer

cargo-leptos
cargo-expand # expand macros
Expand Down
5 changes: 4 additions & 1 deletion rust/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustPkgs = pkgs.rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rust-analyzer"
];
targets = [ "x86_64-unknown-linux-musl" ];
};
treefmt-build = (treefmt.lib.evalModule pkgs ./treefmt.nix).config.build;
Expand Down Expand Up @@ -70,7 +74,6 @@
buildInputs = pre-commit-check.enabledPackages ++ [
# rust
rustPkgs
rust-analyzer
cargo-expand # see macro expansions

# nix
Expand Down

0 comments on commit 902c8d9

Please sign in to comment.