Skip to content

Commit

Permalink
Update reth and support x86_64-darwin (#513)
Browse files Browse the repository at this point in the history
* Update reth (0.2.0-beta.1 -> 0.2.0-beta.6)

* Support Reth on `x86_64-darwin`
  • Loading branch information
i1i1 authored May 27, 2024
1 parent 56cd749 commit 11161c3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkgs/reth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@
}:
rustPlatform.buildRustPackage rec {
pname = "reth";
version = "0.2.0-beta.1";
version = "0.2.0-beta.6";

src = fetchFromGitHub {
owner = "paradigmxyz";
repo = pname;
rev = "v${version}";
hash = "sha256-9PTGYOEsOv8L9INafIKHHjQ1jfMxqW8BR3TEY93tWWs=";
hash = "sha256-ZcQ29AwlTU6rDiknlJbOo8JubXQOJg1UVMSlRb1l8Yk=";
};

cargoLock = {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"alloy-eips-0.1.0" = "sha256-OtcmYr/pBJ+4osmC+jomU2PjoFC4UAeoEVVXDhF7bAQ=";
"revm-inspectors-0.1.0" = "sha256-TVd78Inbpu1OfFPwYctHsopC6kd9yLLZkLJxa+CQ0ec=";
"alloy-consensus-0.1.0" = "sha256-2TZeQo0d+Yp0M46VNx3OZoyDT4F31cLdOpl1tk3syfg=";
"discv5-0.4.1" = "sha256-agrluN1C9/pS/IMFTVlPOuYl3ZuklnTYb46duVvTPio=";
"revm-inspectors-0.1.0" = "sha256-ZRlYNEHD+wewlttUcMuEoTYg9Hn89JVAr7+hIeMBXog=";
};
};

nativeBuildInputs = [
rustPlatform.bindgenHook
];

# `x86_64-darwin` seems to have issues with jemalloc
buildNoDefaultFeatures = true;
buildFeatures = lib.optional (stdenv.system != "x86_64-darwin") "jemalloc";

buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
Expand All @@ -46,7 +51,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/paradigmxyz/reth";
license = with licenses; [mit asl20];
mainProgram = "reth";
# `x86_64-darwin` seems to have issues with jemalloc, but these are fine.
platforms = ["aarch64-darwin" "aarch64-linux" "x86_64-linux"];
platforms = ["aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux"];
};
}

0 comments on commit 11161c3

Please sign in to comment.