Skip to content

Commit c761376

Browse files
committedMar 12, 2025
electron-source: try to avoid log spam
As a precaution and to avoid problems with hydra builds that had to be fixed in the past. References: ce04dc5 (#378988) and 3f514d3.
1 parent feb166e commit c761376

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎pkgs/development/tools/electron/common.nix

+10
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ in
6666

6767
env =
6868
base.env
69+
// {
70+
# Hydra can fail to build electron due to clang spamming deprecation
71+
# warnings mid-build, causing the build log to grow beyond the limit
72+
# of 64mb and then getting killed by Hydra.
73+
# For some reason, the log size limit appears to only be enforced on
74+
# aarch64-linux. x86_64-linux happily succeeds to build with ~180mb. To
75+
# unbreak the build on h.n.o, we simply disable those warnings for now.
76+
# https://hydra.nixos.org/build/283952243
77+
NIX_CFLAGS_COMPILE = base.env.NIX_CFLAGS_COMPILE + " -Wno-deprecated";
78+
}
6979
// lib.optionalAttrs (lib.versionAtLeast info.version "35") {
7080
# Needed for header generation in electron 35 and above
7181
ELECTRON_OUT_DIR = "Release";

0 commit comments

Comments
 (0)
Failed to load comments.