How can I point PIO to a custom fork of esp-idf?

Hi,

I want to use a modified version of esp-idf for a project I’m developing. Without PIO, it’s easy enough to run esp-idf’s ./install.sh and . ./export.sh from a local copy of the modified version to build the project from the command line. How can I have PIO use it so I can benefit from PIO’s IDE integration?

platform_packages + add package.json to the repo (see current /.platformio/packages/framework-espidf.