diff --git a/packages/default.nix b/packages/default.nix index c1e89b95..06ca5d84 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -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 {}; @@ -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"; @@ -187,6 +189,7 @@ nethermind nimbus prysm + rocketpool sedge slither ssvnode diff --git a/packages/utils/rocketpool/default.nix b/packages/utils/rocketpool/default.nix new file mode 100644 index 00000000..f5556f16 --- /dev/null +++ b/packages/utils/rocketpool/default.nix @@ -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"]; + }; +}