reth.nix 798 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. lib,
  3. pkgs,
  4. }:
  5. pkgs.rustPlatform.buildRustPackage rec {
  6. pname = "reth";
  7. version = "1.11.1";
  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-OJp+CAiz/1LWLt0qQrvzjFsU2nIz4ehc+bBtdTf17Oc=";
  15. doCheck = false;
  16. doInstallCheck = false;
  17. nativeBuildInputs = [
  18. pkgs.perl
  19. pkgs.clang
  20. pkgs.libclang
  21. pkgs.rustc
  22. pkgs.cargo
  23. ];
  24. env.LIBCLANG_PATH = pkgs.libclang.lib + "/lib/";
  25. meta = with lib; {
  26. description = "Rust Ethereum daemon";
  27. homepage = "https://github.com/paradigmxyz/reth";
  28. license = licenses.mit;
  29. mainProgram = "reth";
  30. };
  31. }