Add instructions for installing Nix

This commit is contained in:
Konstantin Nazarov 2024-12-07 01:21:26 +00:00
parent 90a8c9c378
commit 23cf02cc38
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

View file

@ -5,7 +5,15 @@ The goal is to have a base rv32i instruction set (the bare minimum) plus a M-ext
## Compiling and running
You'd need nix. Install it and run:
You'd need [nix package manager](https://nixos.org/) in order to build the project. This is because installing cross-toolchain to compile an example project is difficult, and I don't know of other ways except nix that make it easy.
If you don't have it, install it like this:
```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```
Now, to build the emulator:
```sh
nix develop