reth.nix 748 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. lib,
  3. pkgs,
  4. }:
  5. pkgs.rustPlatform.buildRustPackage rec {
  6. pname = "reth";
  7. version = "1.10.2";
  8. src = fetchGit {
  9. url = "https://github.com/paradigmxyz/reth";
  10. # url = /path/to/repo/reth;
  11. ref = "refs/tags/v${version}";
  12. shallow = true;
  13. };
  14. cargoHash = "sha256-X3OGsN+JRFW2As9W6r8vEYXaeJA/qpVFOzZxHaEYF3I=";
  15. nativeBuildInputs = [
  16. pkgs.perl
  17. pkgs.clang
  18. pkgs.libclang
  19. pkgs.rustc
  20. pkgs.cargo
  21. ];
  22. env.LIBCLANG_PATH = pkgs.libclang.lib + "/lib/";
  23. meta = with lib; {
  24. description = "Rust Ethereum daemon";
  25. homepage = "https://github.com/paradigmxyz/reth";
  26. license = licenses.mit;
  27. mainProgram = "reth";
  28. };
  29. }