Skip to content

Commit 676e662

Browse files
committed
feat(reth): add reth execution client
1 parent 4a47712 commit 676e662

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
clang,
3+
lib,
4+
llvmPackages,
5+
fetchFromGitHub,
6+
rustPlatform,
7+
}:
8+
rustPlatform.buildRustPackage rec {
9+
pname = "reth";
10+
version = "0.1.0-alpha.2";
11+
12+
NIX_DEBUG = 7;
13+
14+
src = fetchFromGitHub {
15+
owner = "paradigmxyz";
16+
repo = pname;
17+
rev = "v${version}";
18+
hash = "sha256-+kGhVL7sIbd3WBaRA6XMTAPMCkxRTRacQKFM8oOCqg0=";
19+
};
20+
21+
cargoLock = {
22+
lockFile = "${src}/Cargo.lock";
23+
allowBuiltinFetchGit = true;
24+
outputHashes = {
25+
"boa_ast-0.16.0" = "sha256-M4tDrKM+cR3Xc7qZQ5uHw7lsMEP6OG/VvyHC2oW0BrI=";
26+
"discv5-0.3.0" = "sha256-Z1UZY47C2qtEr4WrOEiWynzsiwggOOEy9slZO5n97BM=";
27+
"igd-0.12.0" = "sha256-wjk/VIddbuoNFljasH5zsHa2JWiOuSW4VlcUS+ed5YY=";
28+
"revm-3.3.0" = "sha256-jmDzHpbWTXxkv+ATAqYznvcQy8V3EF2XVsCyLaH4p0o=";
29+
"ruint-1.8.0" = "sha256-OzIUivkNwtox7cMdqv6tkCMsJsGyVeTvfyMr5SZhuPg=";
30+
};
31+
};
32+
33+
nativeBuildInputs = [clang];
34+
35+
# Needed by libmdx
36+
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
37+
38+
meta = {
39+
description = "Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust";
40+
homepage = "https://github.com/paradigmxyz/reth";
41+
license = [lib.licenses.mit lib.licenses.asl20];
42+
mainProgram = "reth";
43+
platforms = ["x86_64-linux"];
44+
};
45+
}

packages/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
self',
1212
pkgs,
1313
system,
14+
inputs',
1415
...
1516
}: let
1617
inherit (pkgs) callPackage;
1718
inherit (lib.flake) platformPkgs platformApps;
18-
#callPackageUnstable = inputs'.nixpkgs-unstable.legacyPackages.callPackage;
19+
callPackageUnstable = inputs'.nixpkgs-unstable.legacyPackages.callPackage;
1920
in {
2021
packages = platformPkgs system rec {
2122
# Consensus Clients
@@ -30,6 +31,7 @@
3031
geth = callPackage ./clients/execution/geth {};
3132
geth-sealer = callPackage ./clients/execution/geth-sealer {};
3233
nethermind = callPackage ./clients/execution/nethermind {};
34+
reth = callPackageUnstable ./clients/execution/reth {};
3335

3436
# Signers
3537
web3signer = callPackage ./signers/web3signer {};
@@ -96,6 +98,7 @@
9698
# execution clients
9799
besu.bin = "besu";
98100
erigon.bin = "erigon";
101+
reth.bin = "reth";
99102

100103
geth = {
101104
bin = "geth";

0 commit comments

Comments
 (0)