add rust
This commit is contained in:
parent
423907b530
commit
ce6632d57f
2 changed files with 28 additions and 0 deletions
16
flake.nix
16
flake.nix
|
|
@ -187,6 +187,22 @@
|
|||
echo "Bun/Node web shell ready"
|
||||
'';
|
||||
};
|
||||
|
||||
rust = pkgs.mkShell {
|
||||
name = "rust";
|
||||
packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
];
|
||||
shellHook = ''
|
||||
mkdir -p "$PWD/.cache/cargo"
|
||||
export CARGO_HOME="$PWD/.cache/cargo"
|
||||
echo "Rust toolchain shell ready"
|
||||
'';
|
||||
};
|
||||
};
|
||||
in baseShells // zigShell);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue