From e76a061aaa3ae759f88132bcd9a2d00d9ed37ff8 Mon Sep 17 00:00:00 2001 From: Angus Dippenaar Date: Sun, 8 Oct 2023 21:13:25 +0200 Subject: [PATCH] add rocketpool --- packages/default.nix | 2 ++ packages/utils/rocketpool/default.nix | 30 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 packages/utils/rocketpool/default.nix diff --git a/packages/default.nix b/packages/default.nix index 82ce7162..e82a6cd2 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -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 {}; @@ -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"; diff --git a/packages/utils/rocketpool/default.nix b/packages/utils/rocketpool/default.nix new file mode 100644 index 00000000..21facc3c --- /dev/null +++ b/packages/utils/rocketpool/default.nix @@ -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"]; + }; +}