2024-12-09 18:07:01 +01:00
|
|
|
# Usage
|
|
|
|
|
|
|
|
|
|
## Shell
|
|
|
|
|
|
|
|
|
|
A development shell can be started using:
|
|
|
|
|
```sh
|
|
|
|
|
nix develop
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
|
|
To build a Codex you can use:
|
|
|
|
|
```sh
|
2025-01-09 18:29:14 +01:00
|
|
|
nix build '.?submodules=1#default'
|
2024-12-09 18:07:01 +01:00
|
|
|
```
|
|
|
|
|
The `?submodules=1` part should eventually not be necessary.
|
|
|
|
|
For more details see:
|
|
|
|
|
https://github.com/NixOS/nix/issues/4423
|
|
|
|
|
|
|
|
|
|
It can be also done without even cloning the repo:
|
|
|
|
|
```sh
|
2025-01-09 18:29:14 +01:00
|
|
|
nix build 'git+https://github.com/codex-storage/nim-codex?submodules=1#'
|
2024-12-09 18:07:01 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
|
|
```sh
|
2025-01-09 18:29:14 +01:00
|
|
|
nix run 'git+https://github.com/codex-storage/nim-codex?submodules=1#''
|
2024-12-09 18:07:01 +01:00
|
|
|
```
|
2025-01-09 18:29:14 +01:00
|
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
nix flake check ".?submodules=1#"
|
|
|
|
|
```
|