Coder Social home page Coder Social logo

Add ethportal.net tooling about ethereum.nix HOT 2 OPEN

cryptix avatar cryptix commented on August 21, 2024
Add ethportal.net tooling

from ethereum.nix.

Comments (2)

cryptix avatar cryptix commented on August 21, 2024

I'm fairly familiar with nix but no so much with rust. While I was able to build glados in an ad-hoc nix-shell -p rustc cargo libiconv darwin.apple_sdk.frameworks.SystemConfiguration., this failed for trin because it needs rustc 1.79.0 and my nixpkgs still only has 1.78.0.

I therefore tried to copy the reth package description and adopt it to build trin. However I'm running into this odd error and was hoping someone here more familiar with the rust toolset has any insight:

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'trin-v0.1.1'
         whose name attribute is located at /nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'cargoDeps' of derivation 'trin-v0.1.1'

         at /nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source/pkgs/build-support/rust/build-rust-package/default.nix:101:10:

          100| } // {
          101|   inherit buildAndTestSubdir cargoDeps;
             |          ^
          102|

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: No hash was found while vendoring the git dependency alloy-consensus-0.1.0. You can add
       a hash through the `outputHashes` argument of `importCargoLock`:

       outputHashes = {
         "alloy-consensus-0.1.0" = "<hash>";
       };

       If you use `buildRustPackage`, you can add this attribute to the `cargoLock`
       attribute set.

I do have the cargoLock.outputHashes attributes, even with that dependency, as reth also needs it. So i'm a bit confused why it doesn't take / see it. Maybe this could be a workspace issue? trin and glados both have multiple sub-projects but it seems like glados is building fine... I will polish up my WIP branch in a bit.

from ethereum.nix.

cryptix avatar cryptix commented on August 21, 2024

My WIP is at https://github.com/cryptix/ethereum.nix/tree/add-ethportal I based it on #523 for a more recent rustc version.

All the glados tooling is there but trin still fails to compile with the above issue.

from ethereum.nix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.