mmgen-wallet/nix/reth.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2025-09-11 17:37:10 +00:00
{
lib,
}:
let
# cargo and rustc packages from 25.05 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-fe8997.git;
rev = "fe89979ad5e8fd233ae0aac0e7e56f465945ae70";
shallow = true;
};
pkgs = import pinnedPkgs {};
2025-09-11 17:37:10 +00:00
in
2025-11-04 09:32:38 +00:00
pkgs.rustPlatform.buildRustPackage rec {
2025-09-11 17:37:10 +00:00
pname = "reth";
2025-11-06 10:26:23 +00:00
version = "1.9.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;
};
2025-11-06 10:26:23 +00:00
cargoHash = "sha256-VOxT6+LCbWSNzSrLpD0DpbV0iPcy9nUtEaUgmQfTRsI=";
2025-09-11 17:37:10 +00:00
nativeBuildInputs = [
pkgs.clang
pkgs.libclang
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";
};
}