aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/README.md b/README.md
index be18031..d7c6cb8 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,39 @@
# GSA Parser
+
+## Build Instructions
+
+First, install nix:
+
+``` sh
+curl -L https://nixos.org/nix/install | sh
+```
+
+It's recommended to use `flake` in nix, which is experimental:
+
+``` sh
+nix-env -iA nixpkgs.nixUnstable
+```
+
+Then add the following to `~/.config/nix/nix.conf`:
+
+``` text
+experimental-features = nix-command flakes
+```
+
+For faster compilation, use [cachix](https://www.cachix.org/) to download binary dependencies:
+
+``` sh
+nix-env -iA cachix -f https://cachix.org/api/v1/install
+```
+
+Then, activate the following cache:
+
+``` sh
+cachix use ymherklotz
+```
+
+Then build the project using:
+
+``` sh
+nix build
+```