2024-08-31 21:38:18 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-09-07 15:44:59 -04:00
|
|
|
echo "Ensuring system dependencies are present ..."
|
|
|
|
sudo emerge -av --noreplace \
|
2024-08-31 21:38:18 -04:00
|
|
|
x11-misc/xclip \
|
2024-09-07 15:07:30 -04:00
|
|
|
sys-apps/ripgrep \
|
2024-09-07 15:44:59 -04:00
|
|
|
net-libs/nodejs \
|
|
|
|
sys-devel/clang
|
|
|
|
|
|
|
|
# don't want to be root for this, rustup is typically installed by non-root users and won't be
|
|
|
|
# present for root at all.
|
|
|
|
if ! command -v rustup &> /dev/null; then
|
|
|
|
echo "Not installing rust-analyzer, rustup not found."
|
|
|
|
else
|
|
|
|
rustup component add rust-src rust-analyzer
|
|
|
|
fi
|
2024-08-31 21:38:18 -04:00
|
|
|
|