Add instructions for installing Nix
This commit is contained in:
parent
90a8c9c378
commit
23cf02cc38
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -5,7 +5,15 @@ The goal is to have a base rv32i instruction set (the bare minimum) plus a M-ext
|
||||||
|
|
||||||
## Compiling and running
|
## 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
|
```sh
|
||||||
nix develop
|
nix develop
|
||||||
|
|
Loading…
Reference in a new issue