New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zcash: 2.1.1-1 -> 4.1.1; fix build #107184
Conversation
This is pretty much a repackaging, because a lot has changed about zcash in two major versions. Lots of libraries are no longer necessary, and librustzcash is now part of the zcash package as opposed to being a library supposed to be built seperately. The whole thing is a buildRustPackage because that's easier than trying to emulate buildRustPackage's dependency setup behaviour inside a normal mkDerivation. So that the normal zcash build process is followed, the actual configuring and building uses the normal stdenv behaviour.
Result of 1 package built:
|
Builds and basic things like printing help work fine, I will run try and sync to the mainnet over the weekend and verify that it all works fine. LGTM so far Thank you for fixing this! I gave it a shot some weeks ago but realized it would need to be a rewrite and shelved it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Since you are rewriting the whole thing, maybe you can also use nixpkgs-fmt
formatter to re-format the code (mainly to put dependencies on separate lines, making further reviews easier).
Since you are rewriting the whole thing, maybe you can also use
`nixpkgs-fmt` formatter to re-format the code (mainly to put
dependencies on separate lines, making further reviews easier).
I find that style very hard to read, and it's inconsistent with all the
examples in the manual, so I'm going to leave it as it is.
|
@RaghavSood did you get a chance to try a mainnet sync?
|
Apologies, I didn't get a chance to get to it last weekend. It is syncing now, so far so good - about 10% of the way through |
Syncs fine until chaintip, cli and fetch params work as expected |
This is pretty much a repackaging, because a lot has changed about
zcash in two major versions. Lots of libraries are no longer
necessary, and librustzcash is now part of the zcash package as
opposed to being a library supposed to be built seperately.
The whole thing is a buildRustPackage because that's easier than
trying to emulate buildRustPackage's dependency setup behaviour inside
a normal mkDerivation. So that the normal zcash build process is
followed, the actual configuring and building uses the normal stdenv
behaviour.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)