mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 01:36:06 +00:00
2d4ece0c3b
* bump nimbus-build-system to use Nim v2.0.6 * fix: update name and hash for csources of Nim v2 Otherwise we get errors like: ``` Building: Nim compiler /build/source/vendor/nimbus-build-system/vendor/Nim /build/source cmd: git clone -q --depth 1 -b master https://github.com/nim-lang/csources_v2.git csources_v2 24.6.0-dirty cmd: cd csources_v2 ci/funs.sh: line 10: cd: csources_v2: No such file or directory make[1]: *** [vendor/nimbus-build-system/makefiles/targets.mk:81: build-nim] Error 1 ``` Also need to add source for `checksums` repository. Signed-off-by: Jakub Sokołowski <jakub@status.im> --------- Signed-off-by: Jakub Sokołowski <jakub@status.im> Co-authored-by: Jakub Sokołowski <jakub@status.im>
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'
Running
nix run 'github:status-im/nimbus-eth2?submodules=1'