feat: merge rust pkgs into rust-toolchain (#28)
* feat: merge rust pkgs into rust-toolchain * fix: fmt * Add rust-analyzer to toolchain (because why not) --------- Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
This commit is contained in:
parent
b47393e1df
commit
50cf0bae89
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -20,6 +20,10 @@
|
||||||
nonRustDeps = [
|
nonRustDeps = [
|
||||||
pkgs.libiconv
|
pkgs.libiconv
|
||||||
];
|
];
|
||||||
|
rust-toolchain = pkgs.symlinkJoin {
|
||||||
|
name = "rust-toolchain";
|
||||||
|
paths = [ pkgs.rustc pkgs.cargo pkgs.cargo-watch pkgs.rust-analyzer pkgs.rustPlatform.rustcSrc ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Rust package
|
# Rust package
|
||||||
|
@ -45,11 +49,9 @@
|
||||||
buildInputs = nonRustDeps;
|
buildInputs = nonRustDeps;
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
just
|
just
|
||||||
rustc
|
rust-toolchain
|
||||||
cargo
|
|
||||||
cargo-watch
|
|
||||||
rust-analyzer
|
|
||||||
];
|
];
|
||||||
|
RUST_BACKTRACE = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add your auto-formatters here.
|
# Add your auto-formatters here.
|
||||||
|
|
Loading…
Reference in a new issue