diff --git a/pkgs/default.nix b/pkgs/default.nix index 98e07531..0f816ac3 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -61,12 +61,12 @@ prysm = callPackage ./prysm {inherit bls blst;}; reth = callPackageUnstable ./reth {}; rocketpool = callPackage ./rocketpool {}; + rocketpoold = callPackage ./rocketpoold {inherit bls blst;}; rotki-bin = callPackage2311 ./rotki-bin {}; sedge = callPackage2311 ./sedge { bls = callPackage2311 ./bls {}; mcl = callPackage2311 ./mcl {}; }; - slither = callPackage ./slither {}; snarkjs = callPackage ./snarkjs {}; ssvnode = callPackage2311 ./ssvnode { diff --git a/pkgs/rocketpoold/default.nix b/pkgs/rocketpoold/default.nix new file mode 100644 index 00000000..9a4e4bc7 --- /dev/null +++ b/pkgs/rocketpoold/default.nix @@ -0,0 +1,36 @@ +{ + bls, + blst, + buildGoModule, + fetchFromGitHub, +}: +buildGoModule rec { + pname = "rocketpool"; + version = "1.13.7"; + + src = fetchFromGitHub { + owner = "rocket-pool"; + repo = "smartnode"; + rev = "v${version}"; + hash = "sha256-yv04dsLhHG8hI/xoFMUnJo2UeXDjePuYXHjS0NCnypY="; + }; + + vendorHash = "sha256-dDup2mCx2WcrW5XLpZOe7skWRyQKoQttMb2jrLVnu4E="; + + buildInputs = [bls blst]; + + subPackages = ["rocketpool"]; + + CGO_CFLAGS = "-O -D__BLST_PORTABLE__"; + CGO_ENABLED = 1; + postInstall = '' + mv $out/bin/rocketpool $out/bin/rocketpoold + ''; + + meta = { + description = "Rocket Pool Daemon"; + homepage = "https://github.com/rocket-pool/smartnode"; + mainProgram = "rocketpoold"; + platforms = ["aarch64-linux" "x86_64-linux"]; + }; +}