From 10f1cbf7cfbeb8771697dbd493d2f2562db99d7b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 11 Oct 2026 06:37:23 +0200 Subject: [PATCH] Install clang with the Rust dev environment instead of for everyone (#14967) Nothing in the base install builds with clang: Qt apps and Ruby's native gems compile with gcc, and Ruby comes prebuilt from mise. Rust crates that use bindgen, including rb-sys gems, need libclang, so the Rust dev environment installs it. llvm was unused even there. Co-authored-by: Claude Opus 5.5 --- bin/omarchy-install-dev-env | 3 +++ install/omarchy-base.packages | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-install-dev-env b/bin/omarchy-install-dev-env index 03577198..22b855e1 100755 --- a/bin/omarchy-install-dev-env +++ b/bin/omarchy-install-dev-env @@ -92,6 +92,9 @@ phoenix) ;; rust) echo -e "Installing Rust...\n" + # Crates that generate C bindings with bindgen, including Ruby gems built + # with rb-sys, load libclang from clang. + omarchy-pkg-add clang bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y ;; java) diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 9581f944..99324316 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -15,7 +15,6 @@ bolt brightnessctl btop chromium -clang cliamp cups cups-filters @@ -77,7 +76,6 @@ libsecret libvips libyaml libreoffice-fresh -llvm localsend lua51 luarocks