mirror of
https://github.com/leighleighleigh/esp-rs-nix.git
synced 2026-02-27 12:45:25 +02:00
A nix-shell for developing with Rust on Xtensa+RISCV ESP32 targets
- Nix 74.1%
- Just 12.2%
- Shell 9.2%
- Rust 4.5%
|
|
||
|---|---|---|
| .github/workflows | ||
| esp-rs | ||
| qemu-test | ||
| utils | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| package.nix | ||
| README.md | ||
| shell.nix | ||
esp-rs-nix
Project goals:
- Take this: https://github.com/esp-rs/rust-build ...
- ...and this: https://github.com/espressif/crosstool-NG,
- ...and mangle them into a nix derivation (using hard-coded pre-built binaries for now).
- Then, take this: https://github.com/esp-rs/esp-hal ...
- ... run
nix-shell, and compile blinky for esp32s3.
Project status: works on my machine!
Tip
Now supports
x86_64-linux,aarch64-linux, andsystems!aarch64-apple-darwin
Getting started
For nix-shell use, please refer to shell.nix.
For nix develop use, please refer to flake.nix and package.nix.
Version selection
A specific version of the rust toolchain can used with either the shell.nix, or package.nix files.
Below is a table of the currently supported versions.
|
|
|
New versions can be added by updating the ./esp-rs/versions.nix file with the correct file hashes.
why?
The recommended installation method using the espup tool didn't work for me.
notes
- This is for development of
no_std,esp-hal-based applications only. NOT for use withesp-hal-idf. This is hard-coded to download binaries forx86_64only, at the moment.- PRs welcome!