···236 + libStr.concatMapStringsSep introSpace (go (indent + " ")) v
237 + outroSpace + "]"
238 else if isFunction v then
239- let fna = lib.functionArgs v;
0000240 showFnas = concatStringsSep ", " (libAttr.mapAttrsToList
241 (name: hasDefVal: if hasDefVal then name + "?" else name)
242- fna);
243- in if fna == {} then "<function>"
244- else "<function, args: {${showFnas}}>"
0245 else if isAttrs v then
246 # apply pretty values if allowed
247 if attrNames v == [ "__pretty" "val" ] && allowPrettyValues
···236 + libStr.concatMapStringsSep introSpace (go (indent + " ")) v
237 + outroSpace + "]"
238 else if isFunction v then
239+ # functionArgs throws in case of (partially applied) builtins
240+ # on nix before commit b2748c6e99239ff6803ba0da76c362790c8be192
241+ # which includes current nix stable
242+ # TODO remove tryEval workaround when the issue is resolved on nix stable
243+ let fna = builtins.tryEval (lib.functionArgs v);
244 showFnas = concatStringsSep ", " (libAttr.mapAttrsToList
245 (name: hasDefVal: if hasDefVal then name + "?" else name)
246+ fna.value);
247+ in if !fna.success || fna.value == {}
248+ then "<function>"
249+ else "<function, args: {${showFnas}}>"
250 else if isAttrs v then
251 # apply pretty values if allowed
252 if attrNames v == [ "__pretty" "val" ] && allowPrettyValues
···153 ./patches/no-build-timestamps.patch # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed)
154 ./patches/widevine-79.patch # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags
155 # ++ optional (versionRange "68" "72") (githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
156- ] ++ optional (versionRange "89" "90") (githubPatch
157- # To fix the build of chromiumBeta:
158 "b5b80df7dafba8cafa4c6c0ba2153dfda467dfc9" # add dependency on opus in webcodecs
159 "1r4wmwaxz5xbffmj5wspv2xj8s32j9p6jnwimjmalqg3al2ba64x"
160 );
···279 # Disable PGO (defaults to 2 since M89) because it fails without additional changes:
280 # error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-master-1610647094-405a32bcf15e5a84949640f99f84a5b9f61e2f2e.profdata: Unsupported instrumentation profile format version
281 chrome_pgo_phase = 0;
000000282 } // optionalAttrs ungoogled {
283 chrome_pgo_phase = 0;
284 enable_hangout_services_extension = false;
···153 ./patches/no-build-timestamps.patch # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed)
154 ./patches/widevine-79.patch # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags
155 # ++ optional (versionRange "68" "72") (githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
156+ ] ++ optional (versionRange "89" "90.0.4402.0") (githubPatch
157+ # To fix the build of chromiumBeta and chromiumDev:
158 "b5b80df7dafba8cafa4c6c0ba2153dfda467dfc9" # add dependency on opus in webcodecs
159 "1r4wmwaxz5xbffmj5wspv2xj8s32j9p6jnwimjmalqg3al2ba64x"
160 );
···279 # Disable PGO (defaults to 2 since M89) because it fails without additional changes:
280 # error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-master-1610647094-405a32bcf15e5a84949640f99f84a5b9f61e2f2e.profdata: Unsupported instrumentation profile format version
281 chrome_pgo_phase = 0;
282+ } // optionalAttrs (chromiumVersionAtLeast "90") {
283+ # Disable build with TFLite library because it fails without additional changes:
284+ # ninja: error: '../../chrome/test/data/simple_test.tflite', needed by 'test_data/simple_test.tflite', missing and no known rule to make it
285+ # Note: chrome/test/data/simple_test.tflite is in the Git repository but not in chromium-90.0.4400.8.tar.xz
286+ # See also chrome/services/machine_learning/README.md
287+ build_with_tflite_lib = false;
288 } // optionalAttrs ungoogled {
289 chrome_pgo_phase = 0;
290 enable_hangout_services_extension = false;
···1+# shellcheck shell=bash
2+3+fixupOutputHooks+=(_gtk4CleanComments)
4+5+# Clean comments that link to generator of the file
6+_gtk4CleanComments() {
7+ local f="${prefix:?}/lib/gtk-4.0/4.0.0/immodules.cache"
8+ if [ -f "$f" ]; then
9+ sed 's|Created by .*bin/gtk-query-|Created by bin/gtk-query-|' -i "$f"
10+ fi
11+}