From 23cf02cc38c9a83fccdc98cfbe61ee0c6d553a5c Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Sat, 7 Dec 2024 01:21:26 +0000 Subject: [PATCH] Add instructions for installing Nix --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d3a066d..67c5625 100644 --- a/README.md +++ b/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 -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