nimbus-eth2/nix
tersec 2d4ece0c3b
bump nimbus-build-system to use Nim v2.0.6 (#6386)
* 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>
2024-06-25 00:02:16 +02:00
..
README.md add packages to Nix flake config, move to repo root 2024-05-06 16:57:23 +02:00
checksums.nix bump nimbus-build-system to use Nim v2.0.6 (#6386) 2024-06-25 00:02:16 +02:00
csources.nix bump nimbus-build-system to use Nim v2.0.6 (#6386) 2024-06-25 00:02:16 +02:00
default.nix bump nimbus-build-system to use Nim v2.0.6 (#6386) 2024-06-25 00:02:16 +02:00
nimble.nix add packages to Nix flake config, move to repo root 2024-05-06 16:57:23 +02:00
shell.nix add packages to Nix flake config, move to repo root 2024-05-06 16:57:23 +02:00
tools.nix add packages to Nix flake config, move to repo root 2024-05-06 16:57:23 +02:00
version.nix add packages to Nix flake config, move to repo root 2024-05-06 16:57:23 +02:00

README.md

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'