diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1277c9b8..b5003c8a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,7 +112,7 @@ jobs: - uses: haskell-actions/setup@v2.7.0 id: setup with: - ghc-version: '9.8.2' + ghc-version: '9.6.6' - name: Extract GHC & Cabal paths run: | diff --git a/flake.nix b/flake.nix index a5cb6e512..2ba0ed875 100644 --- a/flake.nix +++ b/flake.nix @@ -47,17 +47,14 @@ })); hspkgs = ps : - ps.haskell.packages.ghc98.override { + ps.haskellPackages.override { overrides = hfinal: hprev: { - with-utf8 = ps.haskell.lib.compose.overrideCabal (drv: { - version = "1.1.0.0"; - src = pkgs.fetchFromGitHub { - owner = "serokell"; - repo = "haskell-with-utf8"; - rev = "cf6e31475da3d9f54439650a70170819daa35f54"; - sha256 = "sha256-hxUiZbbcA6RvrVgGk4Vbt/rZT6wnBF3bfYbbQflzQ24="; - }; - }) hprev.with-utf8; + with-utf8 = + if (with ps.stdenv; hostPlatform.isDarwin && hostPlatform.isx86) + then ps.haskell.lib.compose.overrideCabal (_ : { extraLibraries = [ps.libiconv]; }) hprev.with-utf8 + else hprev.with-utf8; + # TODO: temporary fix for static build which is still on 9.4 + witch = ps.haskell.lib.doJailbreak hprev.witch; }; }; hlib = pkgs.haskell.lib; diff --git a/hevm.cabal b/hevm.cabal index a3d6fbd26..2430b8349 100644 --- a/hevm.cabal +++ b/hevm.cabal @@ -83,7 +83,6 @@ common shared OverloadedStrings OverloadedLabels RecordWildCards - TypeAbstractions TypeFamilies ViewPatterns DataKinds