1
0
Fork 0

some pkgs have rust/rustup as their dependency, so switch back to using rustup via pacman

This commit is contained in:
Pratham Patel 2023-02-03 20:12:53 +05:30
parent fd21be5123
commit 5d3eb08673
2 changed files with 1 additions and 7 deletions

View File

@ -41,7 +41,7 @@ PKGS_TO_INSTALL+=(hd-idle hdparm mlocate smartmontools usbutils wol)
PKGS_TO_INSTALL+=(tar unrar unzip xz zip)
# software devel
PKGS_TO_INSTALL+=(cargo-audit cargo-auditable cargo-bloat cargo-depgraph cargo-outdated cargo-spellcheck cargo-update cargo-watch)
PKGS_TO_INSTALL+=(cargo-audit cargo-auditable cargo-bloat cargo-depgraph cargo-outdated cargo-spellcheck cargo-update cargo-watch rustup)
# cross compilation
PKGS_TO_INSTALL+=(aarch64-linux-gnu-gcc riscv64-elf-gcc riscv64-linux-gnu-gcc)

View File

@ -126,12 +126,6 @@ function git_repo_check()
doas pacman --sync --refresh --refresh --sysupgrade
# rust-lang
if ! command -v rustup > /dev/null; then
pushd /tmp
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs -o rust.sh
bash rust.sh
popd
fi
rustup default stable
rustup update stable
rustup component add rust-src rust-analyzer rust-analysis