https://github.com/gooxey/esp32-idf-nix-setup
My "Hello, world!" setup for the esp32 using rust and nix flakes.
https://github.com/gooxey/esp32-idf-nix-setup
esp32 nix-shell rust
Last synced: 3 months ago
JSON representation
My "Hello, world!" setup for the esp32 using rust and nix flakes.
- Host: GitHub
- URL: https://github.com/gooxey/esp32-idf-nix-setup
- Owner: Gooxey
- Created: 2024-02-10T21:59:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-12T17:26:23.000Z (over 1 year ago)
- Last Synced: 2025-01-11T06:32:26.038Z (5 months ago)
- Topics: esp32, nix-shell, rust
- Language: Nix
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp-idf-nix-template
## Entering the development environment
```bash
$ nix develop
```## Important
I have used `sudo espflash flash --monitor` inside the `.cargo/config.toml` file because of lacking permissions when flashing the esp.
If you encounter any errors or do not need root permissions to flash, remove the `sudo`.## Errors
### `NixOS cannot run dynamically linked executables intended for generic linux environments out of the box.`
Install [nix-ld](https://github.com/Mic92/nix-ld)
### Something inside `~/.rustup/toolchains/esp/...` is missing
Reinstall the esp-rs toolchain
```bash
$ espup uninstall
$ espup install
```## Credit
Template used:
-Binary size optimizations from:
-
-