-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix and modernize nix builds to flake.nix + haskell.nix #29
Conversation
Otherwise the build fails with: [ 1 of 16] Compiling JsonRpc ( src/JsonRpc.hs, dist/build/chainweb-mining-client/chainweb-mining-client-tmp/JsonRpc.o, dist/build/chainweb-mining-client/chainweb-mining-client-tmp/JsonRpc.dyn_o ) src/JsonRpc.hs:162:22: error: • Expecting one more argument to ‘A.KeyValue kv’ Expected a constraint, but ‘A.KeyValue kv’ has kind ‘* -> Constraint’ • In the type signature: requestProperties :: A.KeyValue kv => A.ToJSON a => T.Text -> a -> Maybe MsgId -> [kv] | 162 | requestProperties :: A.KeyValue kv => A.ToJSON a => T.Text -> a -> Maybe MsgId -> [kv] | ^^^^^^^^^^^^^
|
In order to maintain backwards compatibility with old consumers
Note that even though the old "Build and publish application binaries" action is failing on this branch while they appear to have passed on the latest commit of I've spent a little bit of time trying to fix that action completely, but it seems to be a non-trivial task to find a set of constraints that will satisfy all the GHC versions that we're currently supporting. Seems to me like the breaking changes in |
This PR updates the nix build infrastructure to use flakes and haskell.nix through our new
hs-nix-infra
flake and converts default.nix to be a wrapper around the newflake.nix
.