1 From 1213bbf5583c6615f719e0acf5f568e08bca5b35 Mon Sep 17 00:00:00 2001
2 From: Paul Meyer <49727155+katexochen@users.noreply.github.com>
3 Date: Mon, 22 Apr 2024 11:59:22 +0200
4 Subject: [PATCH 3/3] nixpkgs: use system C/C++ toolchains
6 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
8 bazel/dependency_imports.bzl | 6 +++++-
9 1 file changed, 5 insertions(+), 1 deletion(-)
11 diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl
12 index 4e55a129e4..6c2a5f0d82 100644
13 --- a/bazel/dependency_imports.bzl
14 +++ b/bazel/dependency_imports.bzl
15 @@ -24,7 +24,11 @@ JQ_VERSION = "1.7"
18 def envoy_dependency_imports(go_version = GO_VERSION, jq_version = JQ_VERSION, yq_version = YQ_VERSION):
19 - rules_foreign_cc_dependencies()
20 + rules_foreign_cc_dependencies(
21 + register_default_tools=False, # no prebuilt toolchains
22 + register_built_tools=False, # nor from source
23 + register_preinstalled_tools=True, # use host tools (default)
25 go_rules_dependencies()
26 go_register_toolchains(go_version)
27 if go_version != "host":