Add Nix flake with devShell

This commit is contained in:
Rien Maertens
2021-11-04 16:31:37 +01:00
parent 1cc004ed52
commit 58a28c2715
5 changed files with 129 additions and 15 deletions

View File

@ -169,7 +169,17 @@ Steps you can try if the script isn't working:
If you want to play with the `restream` code, you will have to [install Rust](https://www.rust-lang.org/learn/get-started).
There are two ways of building the required restream binary for streaming the reMarkable framebuffer. For both approaches, the generated restream binary will be located under `target/armv7-unknown-linux-gnueabihf/release/restream`.
There are three ways of building the required restream binary for streaming the reMarkable framebuffer. For these approaches, the generated restream binary will be located under `target/armv7-unknown-linux-gnueabihf/release/restream`.
- **Using nix flakes**
With [Nix](https://nixos.org/guides/install-nix.html) installed and
[Nix flakes](https://nixos.wiki/wiki/Flakes#Installing_flakes) enabled, you
can easily setup the devlopment environment with:
```
nix develop
```
After which you can simply run `cargo build --release` to build the restream
binary.
- **Using docker and the toltec toolchain:**
You can use the [toltec toolchain docker images](https://github.com/toltec-dev/toolchain) to build a restream binary compatible with the reMarkable.