reth.nix 729 B

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