Skip to content

Commit

Permalink
add rocketpool
Browse files Browse the repository at this point in the history
  • Loading branch information
angaz committed Oct 20, 2023
1 parent db49871 commit 79bf0a4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
eth2-val-tools = callPackage ./utils/eth2-val-tools {inherit bls mcl;};
ethdo = callPackage ./utils/ethdo {inherit bls mcl;};
ethereal = callPackage ./utils/ethereal {inherit bls mcl;};
rocketpool = callPackage ./utils/rocketpool {};
sedge = callPackage ./utils/sedge {inherit bls mcl;};
staking-deposit-cli = callPackage ./utils/staking-deposit-cli {};
zcli = callPackage ./utils/zcli {};
Expand Down Expand Up @@ -149,10 +150,11 @@
slither.bin = "slither";

# utils
eth2-val-tools.bin = "eth2-val-tools";
eth2-testnet-genesis.bin = "eth2-testnet-genesis";
eth2-val-tools.bin = "eth2-val-tools";
ethdo.bin = "ethdo";
ethereal.bin = "ethereal";
rocketpool.bin = "rocketpool";
sedge.bin = "sedge";
staking-deposit-cli.bin = "deposit";
zcli.bin = "zcli";
Expand Down Expand Up @@ -187,6 +189,7 @@
nethermind
nimbus
prysm
rocketpool
sedge
slither
ssvnode
Expand Down
30 changes: 30 additions & 0 deletions packages/utils/rocketpool/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "rocketpool";
version = "1.10.2";

src = fetchFromGitHub {
owner = "rocket-pool";
repo = "smartnode";
rev = "v${version}";
hash = "sha256-BBCBJtLrNCLF0GLBtT9wXP4JGxGIk/zs+lWmfis6m48=";
};

vendorHash = "sha256-rat5rA2puR2k/cL9PmAnFCd5N3TCfbsBxfLKdusZ2RE=";

subPackages = ["rocketpool-cli"];

postInstall = ''
mv $out/bin/rocketpool-cli $out/bin/rocketpool
'';

meta = {
description = "Rocket Pool CLI";
homepage = "https://github.com/rocket-pool/smartnode";
mainProgram = "rocketpool";
platforms = ["aarch64-linux" "x86_64-linux"];
};
}

0 comments on commit 79bf0a4

Please sign in to comment.