anchor.diff:      withCustomModes = true;
     };
   
  -  defaultDependencies = [
  -    (libpng.override { apngSupport = false; }) # https://bugs.chromium.org/p/chromium/issues/detail?id=752403
  -    bzip2 flac speex opusWithCustomModes
  -    libevent expat libjpeg snappy
  -    libcap
  -    xdg-utils minizip libwebp
  -    libusb1 re2
  -    ffmpeg libxslt libxml2
  -    nasm
  -  ];
  -
     # build paths and release info
     packageName = extraAttrs.packageName or extraAttrs.name;
     buildType = "Release";
  
positive.code: 
      nativeBuildInputs = [
        ninja pkg-config
        python2WithPackages python3WithPackages perl nodejs
        gnutar which
        llvmPackages.bintools
      ];
  
      buildInputs = defaultDependencies ++ [
        nspr nss systemd
        util-linux alsa-lib
        bison gperf libkrb5
  
negative.code: { stdenv, lib, fetchurl, fetchpatch
  # Channel data:
  , channel, upstream-info
  
  # Native build inputs:
  , ninja, pkg-config
  , python2, python3, perl
  , gnutar, which
  , llvmPackages
  # postPatch:
  , pkgsBuildHost
  # configurePhase:
  , gnChromium
  
  # Build inputs:
  , libpng
  , bzip2, flac, speex, libopus
  , libevent, expat, libjpeg, snappy
  , libcap
  , xdg-utils, minizip, libwebp
  , libusb1, re2
  , ffmpeg, libxslt, libxml2
  , nasm
  , nspr, nss, systemd
  , util-linux, alsa-lib
  , bison, gperf, libkrb5
  , glib, gtk3, dbus-glib
  , libXScrnSaver, libXcursor, libXtst, libxshmfence, libGLU, libGL
  , mesa
  , pciutils, protobuf, speechd, libXdamage, at-spi2-core
  , pipewire
  , libva
  , libdrm, wayland, libxkbcommon # Ozone
  , curl
  # postPatch:
  , glibc # gconv + locale
  
  # Package customization:
  , gnomeSupport ? false, gnome2 ? null
  , gnomeKeyringSupport ? false, libgnome-keyring3 ? null
  , cupsSupport ? true, cups ? null
  , proprietaryCodecs ? true
  , pulseSupport ? false, libpulseaudio ? null
  , ungoogled ? false, ungoogled-chromium
  # Optional dependencies:
  , libgcrypt ? null # gnomeSupport || cupsSupport
  }:
  
  buildFun:
  