`idf.py openocd` does not work becuase OPENOCD_SCRIPTS is not set
They seem to have their own check in place, so idf.py should have access to this environment variable, not just the openocd binary.
For reference export OPENOCD_SCRIPTS='/nix/store/3yxz49an26m4hh8h6jzvplq481l4g380-openocd-esp32-esp-idf-v5.3/openocd-esp32/share/openocd/scripts'
Probably the proper way to solve this and #62 is for tool export vars to be set by the ESP-IDF derivation setup hook, so they are set for everything in the ESP-IDF environment. I will see if I can do this sometime.
I believe I've addressed this with #71
Should be fixed by #71.