aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 6d174874d8be58631f971d2b15869ad1927db775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# GSA Parser

## Build Instructions

First, install nix. This is a bit of an effort on a docker image.
So I'll push the container I have with it to the image so everyone has it.
But if you want to install it yourself, you need to do the following steps.
Create a temporary user as whom we install nix (it doesn't allow installation as root). 

``` sh
apt install curl bzip2 adduser
adduser --disabled-password --gecos '' nix-installer
mkdir -m 0755 /nix && chown nix-installer /nix
sudo -u nix-installer /bin/bash
cd /home/nix-installer
sh <(curl -L https://nixos.org/nix/install) --daemon
```

It's recommended to use `flake` in nix, which is experimental:

``` sh
nix-env -iA nixpkgs.nixUnstable
```

Then add the following to `/etc/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
USER=root cachix use jmc 
USER=root cachix use ymherklotz
```

Then build the project using:

``` sh
nix build
```