anchor.diff:        ln -sf $BINARYWRAPPER $out/bin/brave
   
         for exe in $out/opt/brave.com/brave/{brave,chrome_crashpad_handler}; do
  -      patchelf \
  -          --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
  -          --set-rpath "${rpath}" $exe
  +          patchelf \
  +              --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
  +              --set-rpath "${rpath}" $exe
         done
   
         # Fix paths
  
positive.code:       ${optionalString (disableFeatures != []) ''
        --add-flags "--disable-features=${strings.concatStringsSep "," disableFeatures}"
        ''}
        --add-flags ${escapeShellArg commandLineArgs}
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
        ${optionalString vulkanSupport ''
        --prefix XDG_DATA_DIRS  : "${addOpenGLRunpath.driverLink}/share"
        ''}
      )
    '';
  
negative.code: , pulseSupport ? stdenv.isLinux
  , libpulseaudio
  
  # For GPU acceleration support on Wayland (without the lib it doesn't seem to work)
  , libGL
  
  # For video acceleration via VA-API (--enable-features=VaapiVideoDecoder,VaapiVideoEncoder)
  , libvaSupport ? stdenv.isLinux
  , libva
  