markoburcul 0cffa02748
nix: add codex service definition
Referenced issue: https://github.com/codex-storage/nim-codex/issues/940

Signed-off-by: markoburcul <marko@status.im>
2025-01-10 17:49:20 +01:00
..
2025-01-10 17:49:20 +01:00
2025-01-10 17:49:20 +01:00
2025-01-10 17:49:20 +01:00

Usage

Shell

A development shell can be started using:

nix develop

Building

To build a Codex you can use:

nix build '.?submodules=1#default'

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:

nix build 'git+https://github.com/codex-storage/nim-codex?submodules=1#'

Running

nix run 'git+https://github.com/codex-storage/nim-codex?submodules=1#''

Testing

nix flake check ".?submodules=1#"