Skip to content

Commit 3fab8d7

Browse files
committed
feat(pkgs): Add nimbus package from status-im/nimbus-eth2 repo
1 parent c173a64 commit 3fab8d7

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

flake.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
url = "github:nix-community/fenix";
5757
inputs.nixpkgs.follows = "nixpkgs-unstable";
5858
};
59+
60+
nimbus = {
61+
url = "git+https://github.com/status-im/nimbus-eth2?submodules=1";
62+
inputs.nixpkgs.follows = "nixpkgs-unstable";
63+
};
5964
};
6065

6166
outputs = inputs @ {

modules/nimbus-eth2/options.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
package = mkOption {
2424
type = types.package;
25-
default = pkgs.nimbus;
25+
default = pkgs.nimbus-eth2;
2626
defaultText = literalExpression "pkgs.nimbus";
2727
description = "Package to use for Nimbus Beacon Node binary";
2828
};

modules/nimbus-eth2/service-args.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
pkgs,
4+
self',
45
...
56
}: let
67
modulesLib = import ../lib.nix lib;
@@ -117,7 +118,7 @@ in {
117118

118119
binaryName =
119120
if cfg.args.network == "gnosis" || cfg.args.network == "chiado"
120-
then "${cfg.package}/bin/nimbus_beacon_node_gnosis"
121+
then "${self'.packages.nimbus}/bin/nimbus_beacon_node_gnosis"
121122
else "${cfg.package}/bin/nimbus_beacon_node";
122123

123124
# When running trustedNodeSync after passing once, it gives an error

pkgs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
vscode-plugin-consensys-vscode-solidity-visual-editor = callPackage ./consensys.vscode-solidity-auditor {};
9898
web3signer = callPackage ./web3signer {};
9999
zcli = callPackage ./zcli {};
100+
nimbus-eth2 = inputs.nimbus.packages.${system}.beacon_node;
100101
};
101102

102103
apps = platformApps self'.packages {

0 commit comments

Comments
 (0)