Skip to content

Commit 51a47f1

Browse files
authoredMar 24, 2025
electron-{bin,source,chromedriver}_35: init at 35.0.3 (#387294)
2 parents 109a1f5 + 506d38b commit 51a47f1

File tree

6 files changed

+1034
-3
lines changed

6 files changed

+1034
-3
lines changed
 

‎pkgs/applications/networking/browsers/chromium/common.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ let
294294
nativeBuildInputs =
295295
[
296296
ninja
297+
gnChromium
297298
]
298299
++ lib.optionals needsCompgen [
299300
bashInteractive # needed for compgen in buildPhase -> process_template
@@ -793,7 +794,7 @@ let
793794
# This is to ensure expansion of $out.
794795
libExecPath="${libExecPath}"
795796
${python3.pythonOnBuildForHost}/bin/python3 build/linux/unbundle/replace_gn_files.py --system-libraries ${toString gnSystemLibraries}
796-
${gnChromium}/bin/gn gen --args=${lib.escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
797+
gn gen --args=${lib.escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
797798
798799
# Fail if `gn gen` contains a WARNING.
799800
grep -o WARNING gn-gen-outputs.txt && echo "Found gn WARNING, exiting nix build" && exit 1

‎pkgs/development/tools/electron/binary/info.json

+11
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,16 @@
3131
"x86_64-linux": "7ddd7e64846d72f90f62c4af29ce7930859b7d2ffac256c156e5bfa36f9e9b39"
3232
},
3333
"version": "34.3.3"
34+
},
35+
"35": {
36+
"hashes": {
37+
"aarch64-darwin": "1f4a5d6f43de4a39b45ff2d17e2165b5ac236480eec811e0ff8e8ac78094840c",
38+
"aarch64-linux": "b6068824cfe1f69add33320237cb994e2f9630fb568afa5c4dca6e6b74c6f6e0",
39+
"armv7l-linux": "187b27a2db6b20fda3b0542670c9b490d246f1b7111fe71c7d6e31b2788042ce",
40+
"headers": "0i7x7liv4dwqg4ijlgr3z28s3802hmbz6z56xvlg40jkq4g28j11",
41+
"x86_64-darwin": "469d6f90744127e9d53ec0116c0eca94cd6f6d8c74be70b7e7e8251f047f0205",
42+
"x86_64-linux": "44504bde889285d5798bd5921de87af492551ab1221be531a678dbb39ad58288"
43+
},
44+
"version": "35.0.3"
3445
}
3546
}

‎pkgs/development/tools/electron/chromedriver/info.json

+11
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,16 @@
3131
"x86_64-linux": "999fb44c5877b34da0ee6e24eb0ce74e521ed47e84db107b6037488ec51d45f1"
3232
},
3333
"version": "34.3.3"
34+
},
35+
"35": {
36+
"hashes": {
37+
"aarch64-darwin": "529ef74efb2222618e02a4df3004c21d61f9dfe27a2787b9111a4a00906e260d",
38+
"aarch64-linux": "fd3d8ba3e0604cf417e373d06ece9f6abdf925dc42c68bf2a559d512f553a021",
39+
"armv7l-linux": "728a7db1e5196e3e6330c424a633219f6f5e8297895f7f13a0971f41e96d9d65",
40+
"headers": "0i7x7liv4dwqg4ijlgr3z28s3802hmbz6z56xvlg40jkq4g28j11",
41+
"x86_64-darwin": "b36a45a4a70834067d338f7f3e472278c044f7a53522f9367c91ab51dde96902",
42+
"x86_64-linux": "39c908639d5a121eb524f3fd4af3c5649f18247ddb7b4ce41438c39ad190eeeb"
43+
},
44+
"version": "35.0.3"
3445
}
3546
}

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

+18-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ in
6464
hash = info.chromium_npm_hash;
6565
};
6666

67+
env =
68+
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+
}
79+
// lib.optionalAttrs (lib.versionAtLeast info.version "35") {
80+
# Needed for header generation in electron 35 and above
81+
ELECTRON_OUT_DIR = "Release";
82+
};
83+
6784
src = null;
6885

6986
patches = base.patches;
@@ -178,7 +195,7 @@ in
178195
# build/args/all.gn
179196
is_electron_build = true;
180197
root_extra_deps = [ "//electron" ];
181-
node_module_version = info.modules;
198+
node_module_version = lib.toInt info.modules;
182199
v8_promise_internal_field_count = 1;
183200
v8_embedder_string = "-electron.0";
184201
v8_enable_snapshot_native_code_counters = false;
@@ -193,7 +210,6 @@ in
193210
allow_runtime_configurable_key_storage = true;
194211
enable_cet_shadow_stack = false;
195212
is_cfi = false;
196-
use_qt = false;
197213
v8_builtins_profiling_log_file = "";
198214
enable_dangling_raw_ptr_checks = false;
199215
dawn_use_built_dxc = false;

0 commit comments

Comments
 (0)
Failed to load comments.