With the repo containing a nice package.json
I bet standard platform_packages
tricks work as well though…
platform_packages =
framework-arduinoespressif8266@https://github.com/esp8266/Arduino.git#3.0.0
mcspr/toolchain-xtensa@~5.100200.0
(also see here)