-
Notifications
You must be signed in to change notification settings - Fork 74
WIP: Support for GHC 9.4 #283
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,15 +32,47 @@ | |
| z3 | ||
| cvc5 | ||
| git | ||
| ] ++ lib.optionals (!stdenv.isDarwin) [ | ||
| foundry.defaultPackage.${system} | ||
| ]; | ||
|
|
||
| secp256k1-static = stripDylib (pkgs.secp256k1.overrideAttrs (attrs: { | ||
| configureFlags = attrs.configureFlags ++ [ "--enable-static" ]; | ||
| })); | ||
|
|
||
| patchedHaskellPackages = pkgs.haskell.packages.ghc94.override { | ||
| overrides = self: super: { | ||
| # disable tests in optics | ||
| optics-core = pkgs.haskell.lib.dontCheck (self.callCabal2nix "optics-core" (pkgs.fetchFromGitHub { | ||
| owner = "well-typed"; | ||
| repo = "optics"; | ||
| rev = "46b03019bd7d9eddb767b19a68b94125eec3b17a"; | ||
| sha256 = "sha256-wzZ/64G7nVAzIFjKNs/jBvv6gQdTIQS4X/OvM5KWfnU="; | ||
| } + "/optics-core") {}); | ||
| optics = pkgs.haskell.lib.dontCheck (self.callCabal2nix "optics" (pkgs.fetchFromGitHub { | ||
| owner = "well-typed"; | ||
| repo = "optics"; | ||
| rev = "46b03019bd7d9eddb767b19a68b94125eec3b17a"; | ||
| sha256 = "sha256-wzZ/64G7nVAzIFjKNs/jBvv6gQdTIQS4X/OvM5KWfnU="; | ||
| } + "/optics") {}); | ||
| indexed-profunctors = pkgs.haskell.lib.dontCheck (self.callCabal2nix "optics" (pkgs.fetchFromGitHub { | ||
| owner = "well-typed"; | ||
| repo = "optics"; | ||
| rev = "46b03019bd7d9eddb767b19a68b94125eec3b17a"; | ||
| sha256 = "sha256-wzZ/64G7nVAzIFjKNs/jBvv6gQdTIQS4X/OvM5KWfnU="; | ||
| } + "/indexed-profunctors") {}); | ||
| # use obsidian systems fork of string-qq | ||
| string-qq = self.callCabal2nix "string-qq" (pkgs.fetchFromGitHub { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we upstream this to nixpkgs?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I'll make a PR to Nixpkgs explaining the situation with string-qq |
||
| owner = "obsidiansystems"; | ||
| repo = "string-qq"; | ||
| rev = "82ad6d72b694dc61e9b6b7eb856cb2d3d27e2865"; | ||
| sha256 = "sha256-CNtB8jkNyNBR+ZJbtLoeA6U1ivT3gEs4UVFVHIZe27w="; | ||
| }) {}; | ||
| }; | ||
| }; | ||
|
|
||
| hevmUnwrapped = (with pkgs; lib.pipe ( | ||
| haskellPackages.callCabal2nix "hevm" ./. { | ||
| patchedHaskellPackages.callCabal2nix "hevm" ./. { | ||
| # Haskell libs with the same names as C libs... | ||
| # Depend on the C libs, not the Haskell libs. | ||
| # These are system deps, not Cabal deps. | ||
|
|
@@ -67,6 +99,7 @@ | |
| "--extra-lib-dirs=${glibc.static}/lib" | ||
| ])) | ||
| haskell.lib.dontHaddock | ||
| haskell.lib.doJailbreak | ||
| ]).overrideAttrs(final: prev: { | ||
| HEVM_SOLIDITY_REPO = solidity; | ||
| HEVM_ETHEREUM_TESTS_REPO = ethereum-tests; | ||
|
|
@@ -144,13 +177,14 @@ | |
|
|
||
| devShell = with pkgs; | ||
| let libraryPath = "${lib.makeLibraryPath [ libff secp256k1 gmp ]}"; | ||
| in haskellPackages.shellFor { | ||
| in patchedHaskellPackages.shellFor { | ||
| packages = _: [ hevmUnwrapped ]; | ||
| buildInputs = [ | ||
| mdbook | ||
| yarn | ||
| haskellPackages.cabal-install | ||
| haskellPackages.haskell-language-server | ||
| go-ethereum | ||
| patchedHaskellPackages.cabal-install | ||
| patchedHaskellPackages.haskell-language-server | ||
| ] ++ testDeps; | ||
| withHoogle = true; | ||
|
|
||
|
|
||
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 will be included in the next bump right?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yes, when the next
haskell-updatesis merged after NixOS/nixpkgs#236431