From b15a616ef06cadced84c427e01c197896127532a Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 7 Sep 2024 15:44:59 -0400 Subject: [PATCH] update install-deps some more --- install-deps.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 34ba728..b388ec7 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -1,7 +1,17 @@ #!/bin/bash -emerge -av --noreplace \ +echo "Ensuring system dependencies are present ..." +sudo emerge -av --noreplace \ x11-misc/xclip \ sys-apps/ripgrep \ - net-libs/nodejs + 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