mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 14:54:12 +00:00
Jakub Sokołowski
4a1a2c8196
This way we can actually build and run a node using just: ```sh nix run 'github:status-im/nimbus-eth2?submodules=1' ``` The `?submodules=1` part should eventually not be necessary. For more details see: https://github.com/NixOS/nix/issues/4423 Signed-off-by: Jakub Sokołowski <jakub@status.im>
30 lines
497 B
Markdown
30 lines
497 B
Markdown
# Usage
|
|
|
|
## Shell
|
|
|
|
A development shell can be started using:
|
|
```sh
|
|
nix develop
|
|
```
|
|
|
|
## Building
|
|
|
|
To build a beacon node you can use:
|
|
```sh
|
|
nix build '.?submodules=1#beacon_node'
|
|
```
|
|
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
|
|
nix build 'github:status-im/nimbus-eth2?submodules=1'
|
|
```
|
|
|
|
## Running
|
|
|
|
```sh
|
|
nix run 'github:status-im/nimbus-eth2?submodules=1'
|
|
```
|