Skip to content

Commit

Permalink
add rocketpool
Browse files Browse the repository at this point in the history
  • Loading branch information
angaz committed Jan 29, 2024
1 parent 8b44f00 commit e76a061
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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 {};
tx-fuzz = callPackage ./utils/tx-fuzz {};
Expand Down Expand Up @@ -173,6 +174,7 @@
eth2-val-tools.bin = "eth2-val-tools";
ethdo.bin = "ethdo";
ethereal.bin = "ethereal";
rocketpool.bin = "rocketpool";
sedge.bin = "sedge";
staking-deposit-cli.bin = "deposit";
tx-fuzz.bin = "tx-fuzz";
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.11.6";

src = fetchFromGitHub {
owner = "rocket-pool";
repo = "smartnode";
rev = "v${version}";
hash = "sha256-7p6kqZG3TqxpC6ZIAd9cMhxuyUBryIwXVDaHn6SkYxU=";
};

vendorHash = "sha256-Sz2eXsZiXgppUsFIhiDFeFOarC9b5MBnF9pFUkMsUd0=";

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 e76a061

Please sign in to comment.