···160 ./patches/no-build-timestamps.patch
161 # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags:
162 ./patches/widevine-79.patch
163- ] ++ lib.optionals (versionRange "91" "94") [
164- # Fix the build by adding a missing dependency (s. https://crbug.com/1197837):
165- ./patches/fix-missing-atspi2-dependency.patch
166- # Required as dependency for the next patch:
167- (githubPatch {
168- # Reland "Reland "Linux sandbox syscall broker: use struct kernel_stat""
169- commit = "4b438323d68840453b5ef826c3997568e2e0e8c7";
170- sha256 = "1lf6yilx2ffd3r0840ilihp4px35w7jvr19ll56bncqmz4r5fd82";
171- })
172- # To fix the text rendering, see #131074:
173- (githubPatch {
174- # Linux sandbox: fix fstatat() crash
175- commit = "60d5e803ef2a4874d29799b638754152285e0ed9";
176- sha256 = "0apmsqqlfxprmdmi3qzp3kr9jc52mcc4xzps206kwr8kzwv48b70";
177- })
178 ];
179180 postPatch = ''
···253 # e.g. unsafe developer builds have developer-friendly features that may
254 # weaken or disable security measures like sandboxing or ASLR):
255 is_official_build = true;
0256 # Build Chromium using the system toolchain (for Linux distributions):
257 custom_toolchain = "//build/toolchain/linux/unbundle:default";
258 host_toolchain = "//build/toolchain/linux/unbundle:default";
···289 enable_widevine = true;
290 # Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture:
291 rtc_use_pipewire = true;
292- } // optionalAttrs (!chromiumVersionAtLeast "94") {
293- fieldtrial_testing_like_official_build = true;
294- } // optionalAttrs (chromiumVersionAtLeast "94") {
295- disable_fieldtrial_testing_config = true;
296 } // optionalAttrs proprietaryCodecs {
297 # enable support for the H.264 codec
298 proprietary_codecs = true;
···160 ./patches/no-build-timestamps.patch
161 # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags:
162 ./patches/widevine-79.patch
000000000000000163 ];
164165 postPatch = ''
···238 # e.g. unsafe developer builds have developer-friendly features that may
239 # weaken or disable security measures like sandboxing or ASLR):
240 is_official_build = true;
241+ disable_fieldtrial_testing_config = true;
242 # Build Chromium using the system toolchain (for Linux distributions):
243 custom_toolchain = "//build/toolchain/linux/unbundle:default";
244 host_toolchain = "//build/toolchain/linux/unbundle:default";
···275 enable_widevine = true;
276 # Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture:
277 rtc_use_pipewire = true;
0000278 } // optionalAttrs proprietaryCodecs {
279 # enable support for the H.264 codec
280 proprietary_codecs = true;