flake.nix: install cabal-install from head #324
Merged
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.
Description
This is pretty ugly (and will probably make updating to a newer nixpkgs annoying), but it does give us access to the multiple components features that were added to cabal in haskell/cabal#8726. Which is imo a large enough workflow upgrade that it's worth this temporary hack until we get an official release.
See https://well-typed.com/blog/2023/03/cabal-multi-unit/ for docs.
To spawn a repl session for the tests where
:r
will reload changes made inlib:hevm
, and run a single test:One unfortunate downside is that
Paths.getDataFileName
seems to be broken in a multi-component repl, so the tests that trace vs geth and theDapp-Tests
test group are broken. They still work in the normal single component repl.Checklist