nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 nix-update-script,
5 rustPlatform,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "reth";
10 version = "1.6.0";
11
12 src = fetchFromGitHub {
13 owner = "paradigmxyz";
14 repo = "reth";
15 rev = "v${version}";
16 hash = "sha256-dT5H+0lfkf9QeWAV7BsCpctzNCwF3oW9Gn7CM7hexDs=";
17 };
18
19 cargoHash = "sha256-jWSeTGtq3K7vuhOhOa3BiNJ3lnhNNG8LYWr/xFFljAM=";
20
21 nativeBuildInputs = [
22 rustPlatform.bindgenHook
23 ];
24
25 # Some tests fail due to I/O that is unfriendly with nix sandbox.
26 checkFlags = [
27 "--skip=builder::tests::block_number_node_config_test"
28 "--skip=builder::tests::launch_multiple_nodes"
29 "--skip=builder::tests::rpc_handles_none_without_http"
30 "--skip=cli::tests::override_trusted_setup_file"
31 "--skip=cli::tests::parse_env_filter_directives"
32 ];
33
34 passthru.updateScript = nix-update-script { };
35
36 meta = {
37 description = "Modular Ethereum execution client in Rust by Paradigm";
38 homepage = "https://github.com/paradigmxyz/reth";
39 license = with lib.licenses; [
40 mit
41 asl20
42 ];
43 mainProgram = "reth";
44 maintainers = with lib.maintainers; [ mitchmindtree ];
45 platforms = lib.platforms.unix;
46 };
47}