mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-09-11 07:15:45 +03:00
Update INSTALL.md
This commit is contained in:
parent
aafa258ac3
commit
522453de94
26
INSTALL.md
26
INSTALL.md
@ -8,26 +8,22 @@ Kind is distributed as a single binary executable. You can download it [here](ht
|
||||
|
||||
# Building from source
|
||||
|
||||
**1.** Go to the root of the repository, pull the latest version, and run:
|
||||
**1.** There are many dependencies involved to build the Scheme release and we use nix to manage them. So first you need to install the [latest version](https://github.com/numtide/nix-unstable-installer) of nix.
|
||||
|
||||
```shell
|
||||
cd bin/scm
|
||||
git submodule update --init --recursive
|
||||
make
|
||||
**2.** After installing nix enable the flakes feature by adding
|
||||
|
||||
```
|
||||
experimental-features = nix-command flakes
|
||||
```
|
||||
|
||||
It may take some time. You can grab a cup of coffee while you wait. At the end you should see the `kind-scm` executable inside `bin/scm/bin/`. Try running it:
|
||||
to either `~/.config/nix/nix.conf` or `/etc/nix/nix.conf`. Restart your terminal for the change to take effect.
|
||||
|
||||
```shell
|
||||
./bin/kind-scm
|
||||
**3.** To build `kind-scm` navigate to the root of the repository and type
|
||||
|
||||
```
|
||||
nix build .#kind-scm
|
||||
```
|
||||
|
||||
You can install it wherever you want. If you're fine placing it in `/usr/local/bin/` then run.
|
||||
|
||||
```shell
|
||||
sudo make install
|
||||
```
|
||||
|
||||
To update repeat those same steps, it'll probably be much faster.
|
||||
Nix will build all the dependencies and place the executable inside the `result` folder. Subsequent builds will be much faster because the dependencies are already built.
|
||||
|
||||
If something doesn't work, [let us know](https://github.com/uwu-tech/Kind/issues) ;)
|
||||
|
Loading…
Reference in New Issue
Block a user