fix: standard cc availability on macos

This commit is contained in:
Johannes Kresner committed 2026-11-13 14:06:57 +01:00
1 parent a593a5aae3
commit 6af9588a1e
1 file changed
+7 -3
+7 -3
View File
@@ -10,13 +10,17 @@ let
full = cfg.profile == "full"; full = cfg.profile == "full";
# Slim also needs tree-sitter and a C compiler so its few parsers can compile. # Slim also needs tree-sitter and a C compiler so its few parsers can compile.
baseTools = with pkgs; [ # On macOS the Xcode clang does that; Nix's clang wrapper would shadow /usr/bin/cc
# and break cgo links (it can't find SDK libs like -lresolv outside a nix shell).
baseTools =
with pkgs;
[
ripgrep ripgrep
fd fd
git git
tree-sitter tree-sitter
stdenv.cc ]
]; ++ lib.optional stdenv.isLinux stdenv.cc;
# rustup supplies cargo, rustfmt, clippy and rust-analyzer (and the nightly # rustup supplies cargo, rustfmt, clippy and rust-analyzer (and the nightly
# toolchain fff builds with), so those are not listed separately. # toolchain fff builds with), so those are not listed separately.