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
+11 -7
+11 -7
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
ripgrep # and break cgo links (it can't find SDK libs like -lresolv outside a nix shell).
fd baseTools =
git with pkgs;
tree-sitter [
stdenv.cc ripgrep
]; fd
git
tree-sitter
]
++ 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.