-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to skip tool downloading entirely #363
Comments
You can always provide your own env, its documented in the docs. You need a fully activated esp-idf env. What that means is described in the offical esp-idf guides. For not using the automated install look at this option's particular "fromenv" |
I'm aware that I can in theory use pre-activated esp-idf environment, however, when just disabling the tool downloads via an environment variable I can still take advantage of the automatic idf download. This should not be a problem provided the external tools match, and if not the idf complains loudly (and I'd assume a user forcing external tools knows how to deal with that error message). |
git clone --recurse-submodules /~https://github.com/espressif/esp-idf ... so I'm not sure you would be automating that much
=== Not using nixos myself, but a lot of folks actually did complain in the past that the === Also in general, I'm not so happy with putting additional options knobs and whatnot to what is already a very, very complex build. I think we should stick to the existing three options:
|
Motivations
I'm running NixOS and installing the tools via the espidf own methods fails. Since I'm already providing the matching tools externally, the build succeeds as soon as I patch out the tool installation.
Solution
Add an environment, something like
ESP_IDF_SYS_SKIP_TOOL_INSTALL
to skip installing the tools and rely on the user to provide them.Alternatives
I believe both of these have major drawbacks, while providing an environment variable is a simple and concise solution.
Additional context
NixOS can't run Linux binaries downloaded straight from the internet due to the way dynamic library linkage works on NixOS. There are workarounds, but in this case providing the tools externally is reasonably.
If wanted, I can provide the necessary PR to implement these changes.
The text was updated successfully, but these errors were encountered: