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
haskellPackages.hevm: unbreak #105298
haskellPackages.hevm: unbreak #105298
Conversation
Result of 1 package built:
|
Result of 1 package built:
|
|
||
# tests depend on a specific version of solc, | ||
# original derivation expects libff to be under ff attribute, add libff explicitly | ||
hevm = dontCheck (doJailbreak (addExtraLibrary super.hevm pkgs.libff)); |
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.
This addExtraLibrary
shouldn't be here.
The problem here is that cabal2nix
doesn't know about this libff
library.
What you need to do is send a PR to master
adding libff
, and then a separate PR to https://github.com/NixOS/cabal2nix creating this ff
to libff
mapping. Please feel free to ping me on both PRs.
Here is the function you have to add to:
Once both of these are merged in, you can finally send a PR adding dontCheck
and doJailbreak
for hevm
. (Although keep in mind that if you send a PR adding doJailbreak
for hevm
, we'll ask you to send a PR / create an issue upstream reporting that they need to loosen their version bounds, so you might want to do that in advance.)
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.
@cdepillabout here is the libff PR #105400 and cabal2nix PR NixOS/cabal2nix#471
I cherry-picked the relevant commit 2742cc43da2a57bc8f63aaac8d67cb27ab430e29. Thank you very much. |
Motivation for this change
This PR unbreaks hevm package. It tried to find libff under ff attribute. Some dependencies are specified to tightly and most of the tests depend on a specific version of solc.
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)