Skip to content
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

Merged
merged 1 commit into from Dec 26, 2020
Merged

zcash: 2.1.1-1 -> 4.1.1; fix build #107184

merged 1 commit into from Dec 26, 2020

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Dec 19, 2020

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
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

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.
@RaghavSood
Copy link
Member

Result of nixpkgs-review pr 107184 run on x86_64-linux 1

1 package built:
  • zcash

@RaghavSood
Copy link
Member

RaghavSood commented Dec 19, 2020

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.

Copy link
Member

@prusnak prusnak left a 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).

@alyssais
Copy link
Member Author

alyssais commented Dec 19, 2020 via email

@alyssais
Copy link
Member Author

alyssais commented Dec 24, 2020 via email

@RaghavSood
Copy link
Member

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

@RaghavSood
Copy link
Member

Syncs fine until chaintip, cli and fetch params work as expected

@RaghavSood RaghavSood merged commit b428cee into NixOS:master Dec 26, 2020
@alyssais alyssais deleted the zcash branch April 9, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants