Skip to content

Commit

Permalink
fix: Replace Rust setup w/ rustup
Browse files Browse the repository at this point in the history
The individual tools didnt play too well together. rustup just works
  • Loading branch information
alexpovel committed May 24, 2024
1 parent 452566e commit 070cc1b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ in
ansible
bat
bottom
cargo
clippy
cmake
curl
dig
Expand Down Expand Up @@ -118,8 +116,7 @@ in
]))
rclone
rsync
rustc
rustfmt
rustup
shellcheck
sqlite
(pkgs.rustPlatform.buildRustPackage
Expand Down Expand Up @@ -416,6 +413,12 @@ in
# which isn't natively installable via Nix (which usually takes care of completions).
docker completion zsh > ${zshCustomCompletions}/_docker # Not the cheapest call; ~20ms on warm cache
for cmd in 'rustup' 'cargo'; do
# `cargo` completions were actually already set up, but `rustup` weren't.
# Just do both for consistency.
rustup completions zsh "$cmd" > "${zshCustomCompletions}/_$cmd";
done
# More completions go here, in the form of `_some-command`...
# Note: Nix will install most completions natively already.
'';
Expand Down

0 comments on commit 070cc1b

Please sign in to comment.