dapptools
                                
                                 dapptools copied to clipboard
                                
                                    dapptools copied to clipboard
                            
                            
                            
                        Bump nixpkgs and hevm dependencies
Description
hevm is currently broken in nixpkgs because text-format doesn't support the new GHC that was bumped in this PR (https://github.com/NixOS/nixpkgs/pull/160733). Fortunately, hevm appears to not use text-format so it can be removed from dependencies. To make hevm compatible with the upcoming 22.05 release of nixpkgs, I bumped nixpkgs to the latest unstable (it will branch off to become 22.05 soon https://github.com/NixOS/nixpkgs/issues/165792) and updated the code to work with the newer version of GHC and dependencies (aeson in particular).
Checklist
- [x] tested locally
- [ ] added automated tests
- [ ] updated the docs
- [ ] updated the changelog
Thanks! Looks like ci is failing when trying to build cln. Not sure what's going on there...
Does this also bump us to a newer ghc version with support for arm macs (fine if not, just asking to understand).
This should enable M1 support if it was not working already. We are building M1 releases in Echidna which obviously uses hevm and everything works. I hope fix the build over the weekend.
great news :)
I'm still on it, I'm struggling to get the CI tests working after all the updates
@arcz sorry I should have commented here. I've been playing around with this a bit since the ghc compiler version update is a blocker for me atm.
So far I've managed to fix the cln build issue and get the shared hevm build working, but I'm still stuck on the static build. My current progress is here: https://github.com/dapphub/dapptools/compare/bump-nixpkgs.
@d-xo I merged your branch and fixed the build but I don't know why this test fails:
	Running test_4byte ... FAILURE
 expected [transfer(address,uint256)] but was []
It first failed on my local build but then it worked fine. Not sure what's going on there. The static build is indeed broken and I'm not sure how to fix it.