2025-09-11 17:37:10 +00:00
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
}:
|
|
|
|
|
|
2026-04-25 14:54:39 +00:00
|
|
|
let
|
|
|
|
|
# cargo and rustc packages from 25.11 are out of date,
|
|
|
|
|
# so fetch them from a more recent commit:
|
|
|
|
|
pinnedPkgs = fetchGit {
|
|
|
|
|
url = "https://github.com/NixOS/nixpkgs.git";
|
|
|
|
|
# url = /path/to/repo/nixpkgs-116266.git;
|
|
|
|
|
rev = "116266f52682e7b975426c66204b3dada19be502";
|
|
|
|
|
shallow = true;
|
|
|
|
|
};
|
|
|
|
|
pkgs = import pinnedPkgs {};
|
|
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
2025-11-04 09:32:38 +00:00
|
|
|
pkgs.rustPlatform.buildRustPackage rec {
|
2025-09-11 17:37:10 +00:00
|
|
|
pname = "reth";
|
2026-05-15 13:42:49 +00:00
|
|
|
version = "2.2.0";
|
2025-09-11 17:37:10 +00:00
|
|
|
|
|
|
|
|
src = fetchGit {
|
|
|
|
|
url = "https://github.com/paradigmxyz/reth";
|
|
|
|
|
# url = /path/to/repo/reth;
|
|
|
|
|
ref = "refs/tags/v${version}";
|
|
|
|
|
shallow = true;
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-15 13:42:49 +00:00
|
|
|
cargoHash = "sha256-tnFIuC9hKjrLjaUuHJVM/oEUQWls11gdstOtPFkFW8w=";
|
2026-03-02 11:56:46 +00:00
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
doInstallCheck = false;
|
2025-09-11 17:37:10 +00:00
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2026-02-11 13:02:13 +00:00
|
|
|
pkgs.perl
|
2025-09-11 17:37:10 +00:00
|
|
|
pkgs.clang
|
|
|
|
|
pkgs.libclang
|
2025-10-06 09:40:52 +00:00
|
|
|
pkgs.rustc
|
|
|
|
|
pkgs.cargo
|
2025-09-11 17:37:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
env.LIBCLANG_PATH = pkgs.libclang.lib + "/lib/";
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Rust Ethereum daemon";
|
|
|
|
|
homepage = "https://github.com/paradigmxyz/reth";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
mainProgram = "reth";
|
|
|
|
|
};
|
|
|
|
|
}
|