Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is our attempt to add the Lodestar package to this repository. I've worked on this for a couple of weeks, but I'm sorry to say that I was not able to complete it since I don't have a time for it. We would like to see the Lodestar node to be implemented in the future so I present you this draft.
The main reason why this was difficult task to complete is the way the Lodestar is packaged. It uses Yarn workspaces to make up the worktree consisting of the subpackages. In Nix, packages using Yarn are usually packaged with the
mkYarnPackage
module. Unfortunately there is no documentation, but here is the default.nix for it.I've found that the correct way might be to use workspaceDependencies argument since it's the only way I can get the subpackages to start building. However, it ends up with the following error:
This is the current state, as you can see if you try to build it (default_2nd.nix). Without the workspaceDependencies, the main package.json will build "successfully" but the binaries are not found (default_1st.nix). We hope that somebody will have the time and knowledge to look into this.
Links
Using
stdenv.mkDerivation
:Using
mkYarnPackage
:Using
mkYarnPackage
withworkspaceDependencies
: