anchor.diff:        patchShebangs .
         # Link to our own Node.js and Java (required during the build):
         mkdir -p third_party/node/linux/node-linux-x64/bin
  -      ln -s "$(command -v node)" third_party/node/linux/node-linux-x64/bin/node
  -      ln -s "${jre8}/bin/java" third_party/jdk/current/bin/
  +      ln -s "${pkgsBuildHost.nodejs}/bin/node" third_party/node/linux/node-linux-x64/bin/node
  +      ln -s "${pkgsBuildHost.jre8}/bin/java" third_party/jdk/current/bin/
   
         # Allow building against system libraries in official builds
         sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
  
positive.code: { stdenv, lib, llvmPackages, gnChromium, ninja, which, nodejs, fetchpatch, fetchurl
  
  # default dependencies
  , gnutar, bzip2, flac, speex, libopus
  , libevent, expat, libjpeg, snappy
  , libpng, libcap
  , xdg-utils, yasm, nasm, minizip, libwebp
  , libusb1, pciutils, nss, re2
  
  , python2, python3, perl, pkg-config
  , nspr, systemd, libkrb5
  , util-linux, alsa-lib
  , bison, gperf
  , glib, gtk3, dbus-glib
  , glibc
  , libXScrnSaver, libXcursor, libXtst, libxshmfence, libGLU, libGL
  , protobuf, speechd, libXdamage, cups
  , ffmpeg, libxslt, libxml2, at-spi2-core
  , jre8
  , pipewire
  , libva
  , libdrm, wayland, mesa, libxkbcommon # Ozone
  , curl
  
  # optional dependencies
  , libgcrypt ? null # gnomeSupport || cupsSupport
  
  # package customization
  , gnomeSupport ? false, gnome2 ? null
  , gnomeKeyringSupport ? false, libgnome-keyring3 ? null
  , proprietaryCodecs ? true
  , cupsSupport ? true
  , pulseSupport ? false, libpulseaudio ? null
  , ungoogled ? false, ungoogled-chromium
  
  , channel
  , upstream-info
  }:
  
  buildFun:
  
negative.code:       libva
        libdrm wayland mesa.drivers libxkbcommon
        curl
      ] ++ optionals gnomeSupport [ gnome2.GConf libgcrypt ]
        ++ optional gnomeKeyringSupport libgnome-keyring3
        ++ optionals cupsSupport [ libgcrypt cups ]
        ++ optional pulseSupport libpulseaudio;
  
      patches = [
        # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed):
        ./patches/no-build-timestamps.patch
        # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags:
        ./patches/widevine-79.patch
        # Fix the build by adding a missing dependency (s. https://crbug.com/1197837):
        ./patches/fix-missing-atspi2-dependency.patch
      ] ++ lib.optionals (versionRange "91" "94.0.4583.0") [
  