Jakub 62e57f565b
assert submodules are available to Nix derivation (#6835)
This should result in a human-readable error when `?submodules=1#` is
not appended to the project URL as the README explains:
```
 > nix build '.'
       error: Unable to build without submodules. Append '?submodules=1#' to the URL.

 > nix build '.?submodules=1#'
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-01-12 14:10:30 +00:00
..
2024-12-26 08:22:44 +00:00

Usage

Shell

A development shell can be started using:

nix develop

Building

To build a beacon node you can use:

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:

nix build 'github:status-im/nimbus-eth2?submodules=1#'

The trailing # is required due to URI parsing bug in Nix.

Running

nix run 'github:status-im/nimbus-eth2?submodules=1#'