https://github.com/newam/esp-rs-nix
esp-rs tools packaged with nix
https://github.com/newam/esp-rs-nix
Last synced: 9 months ago
JSON representation
esp-rs tools packaged with nix
- Host: GitHub
- URL: https://github.com/newam/esp-rs-nix
- Owner: newAM
- Created: 2022-03-22T23:29:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-23T23:27:52.000Z (over 4 years ago)
- Last Synced: 2025-09-24T05:40:01.603Z (9 months ago)
- Language: Nix
- Size: 15.6 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp-rs with nix
[esp-rs] is a project that contains libraries, crates and examples for using Rust on Espressif SoC's.
This packages tools from [esp-rs] with [nix].
## Tools
* [`cargo-espflash`](https://github.com/esp-rs/espflash)
* [`cargo-espmonitor`](https://github.com/esp-rs/espmonitor)
* [`espflash`](https://github.com/esp-rs/espflash)
* [`espmonitor`](https://github.com/esp-rs/espmonitor)
* [`ldproxy`](https://github.com/ivmarkov/embuild)
## Usage
1. [Install NixOS or nixpkgs](https://nixos.org/download.html)
2. Enable [nix flakes](https://nixos.wiki/wiki/Flakes)
3. Run a tool, e.g. `nix run github:newam/esp-rs-nix#espflash`
## Compiling Code
At the moment anything that depends on the esp-idf will fail to compile. Pure rust respoitories will compile.
[esp-hal@02c5f4564b0fca1321b18e98e66e124a0b276643](https://github.com/esp-rs/esp-hal/tree/02c5f4564b0fca1321b18e98e66e124a0b276643):
```bash
nix develop github:newAM/esp-rs-nix -i -L -c cargo -Z build-std build --target xtensa-esp32-none-elf -p esp32-hal
```
## References
* [sdobz/rust-esp-nix](https://github.com/sdobz/rust-esp-nix)
* [Using Nix to write rust on the esp32](https://specific.solutions.limited/projects/hanging-plotter/esp-rust)
* [tomjnixon/nix-esp-idf](https://github.com/tomjnixon/nix-esp-idf)
[esp-rs]: https://github.com/esp-rs
[nix]: https://nixos.org/
[nixpkgs repository]: https://github.com/NixOS/nixpkgs