[staging-next] bazel_7: fix build with gcc 15 (#474568)

This commit is contained in:
Vladimír Čunát
2025-12-27 21:53:50 +00:00
committed by GitHub
+7
View File
@@ -6,6 +6,7 @@
makeWrapper,
writeTextFile,
replaceVars,
fetchpatch,
writeShellApplication,
makeBinaryWrapper,
autoPatchelfHook,
@@ -386,6 +387,12 @@ stdenv.mkDerivation rec {
(replaceVars ./bazel_rc.patch {
bazelSystemBazelRCPath = bazelRC;
})
# Fix build with gcc 15 by adding missing headers
(fetchpatch {
url = "https://github.com/bazelbuild/bazel/commit/1d206cac050b6c7d9ce65403e6a9909a49bfe4bc.patch";
hash = "sha256-Tg5o1Va7dd5hvXbWhZiog+VtuiqngqbbYOkCafVudDs=";
})
]
# See enableNixHacks argument above.
++ lib.optional enableNixHacks ./nix-build-bazel-package-hacks.patch;