Comments (2)
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.
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)
- Add support to donations HOT 3
- Latest version of Erigon has broken auto update workflow HOT 2
- Support building/running `prysm` for `aarch64-linux` HOT 4
- Re-introduce Geth tests HOT 2
- Introduce list of available supported apps
- Add Github templates for: bug, request application, docs improvement, etc
- Add support for reth HOT 2
- Improve landing page HOT 1
- Introduce mdformat in the project
- Add support for sigp/siren package HOT 1
- `findEnabled` can cause infinite recursion HOT 1
- Introduce mergify
- Problem with `update flake packages` action HOT 2
- Update Nethermind to latest version (v1.25.3)
- Flatten the `packages/` directory (following the new nixpkgs convention)? HOT 1
- Improve our automatic updates
- Lighthouse error: failed to parse manifest at `/build/source/Cargo.toml` HOT 3
- Update reth to 1.0
- error: attribute 'i686-linux' missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethereum.nix.