mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +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>
13 lines
435 B
Nix
13 lines
435 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
let
|
|
tools = pkgs.callPackage ./tools.nix {};
|
|
sourceFile = ../vendor/nimbus-build-system/vendor/Nim/koch.nim;
|
|
in pkgs.fetchFromGitHub {
|
|
owner = "nim-lang";
|
|
repo = "nimble";
|
|
rev = tools.findKeyValue "^ +NimbleStableCommit = \"([a-f0-9]+)\".+" sourceFile;
|
|
# WARNING: Requires manual updates when Nim compiler version changes.
|
|
hash = "sha256-qJcDKnc+9iUvYrZCMUbBbws+Qqa9vmWyCRsvOUEmq8U=";
|
|
}
|