fix: standard cc availability on macos
This commit is contained in:
1 parent
a593a5aae3
commit
c64821cb25
1 file changed
+11
-7
+11
-7
@@ -10,13 +10,17 @@ let
|
||||
full = cfg.profile == "full";
|
||||
|
||||
# Slim also needs tree-sitter and a C compiler so its few parsers can compile.
|
||||
baseTools = with pkgs; [
|
||||
ripgrep
|
||||
fd
|
||||
git
|
||||
tree-sitter
|
||||
stdenv.cc
|
||||
];
|
||||
# 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
|
||||
fd
|
||||
git
|
||||
tree-sitter
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isLinux stdenv.cc;
|
||||
|
||||
# rustup supplies cargo, rustfmt, clippy and rust-analyzer (and the nightly
|
||||
# toolchain fff builds with), so those are not listed separately.
|
||||
|
||||
Reference in new issue
Block a user