Repository navigation
build(nix): provide ESP-IDF v6.1 in the dev shell - #201
Sammyalhashe wants to merge 3 commits into
Conversation
0ede18a to
8a4a513
Compare
|
I forgot to mention one more thing: I updated the shell scripts to use a more portable shebang since |
joaozinhom
left a comment
There was a problem hiding this comment.
README.md:52 still says the shell is host tools only and that firmware needs a separate ESP-IDF install. After this PR that is no longer true, so anyone following the README will install IDF by hand for no reason, or distrust the shell.
Could you update that paragraph? Something like: nix develop now provides ESP-IDF v6.1, its toolchain and Python tools, plus the host tools, so Nix users can skip the clone. The manual install stays for everyone else. just build still honours an IDF_PATH that is already set, and otherwise falls back to ~/esp/esp-idf.
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; | ||
| # mirrexagon/nixpkgs-esp-dev#135 (ESP-IDF v6.1) plus a libpython3.14 fix for Linux. | ||
| nixpkgs-esp-dev = { | ||
| url = "github:Sammyalhashe/nixpkgs-esp-dev/b574e8e501dfa691814c87d4151043eb991d2be9"; |
There was a problem hiding this comment.
Isn't there an official source for ESP-IDF?
There was a problem hiding this comment.
yes but until mirrexagon/nixpkgs-esp-dev#135 is merged and libpython3.14 is added as in Sammyalhashe/nixpkgs-esp-dev@b574e8e then we need this.
Once this is added I can revert back.
Pulls ESP-IDF v6.1 (toolchains plus its Python env, including esp-idf-sbom) from a fork of mirrexagon/nixpkgs-esp-dev#135 that also fixes Linux builds of the 6.1 gdb, so the shell builds firmware on NixOS and macOS without a separate install.
This has been done by the way. |
- Use /usr/bin/env bash shebangs; NixOS has no /bin/bash. - Disable fortify hardening in the dev shell: it adds glibc's warn_unused_result to posix_memalign, which -Werror rejects.
e8d7b7a to
6a383d1
Compare
Pulls ESP-IDF v6.1 (toolchains plus its Python env, including esp-idf-sbom)
Now the shell builds firmware on NixOS and macOS without a separate install.
I previously checked out #169 and took into account some of the concerns @odudex had.