diff --git a/configuration-ghc-901.nix b/configuration-ghc-901.nix index 36777ad92b..79a04cf0ac 100644 --- a/configuration-ghc-901.nix +++ b/configuration-ghc-901.nix @@ -25,6 +25,13 @@ let # we need add ghc-api-compat to build depends, # since its condition tree is not evaluated under ghc 9 + + ghc-api-compat = hself.callHackageDirect { + pkg = "ghc-api-compat"; + ver = "9.0.1"; + sha256 = "WCK1gu6iiCAc2s2rFEqn2CkvHkITPrmDjuiGsWOWerM="; + } {}; + hiedb = addBuildDepend hsuper.hiedb hself.ghc-api-compat; blaze-textual = hself.callCabal2nix "blaze-textual" diff --git a/flake.nix b/flake.nix index e7409c385a..d5dc999ed1 100644 --- a/flake.nix +++ b/flake.nix @@ -71,13 +71,11 @@ tweaks = hself: hsuper: with haskell.lib; { - ghc-api-compat = hself.callCabal2nix "ghc-api-compat" - (pkgs.fetchFromGitHub { - owner = "hsyl20"; - repo = "ghc-api-compat"; - rev = "8fee87eac97a538dbe81ff1ab18cff10f2f9fa15"; - sha256 = "byehvdxQxhNk5ZQUXeFHjAZpAze4Ct9261ro4c5acZk="; - }) { }; + ghc-api-compat = hself.callHackageDirect { + pkg = "ghc-api-compat"; + ver = "8.10.7"; + sha256 = "g9/InDeQfiXCB9SK8mpl/8B5QEEobj9uqo4xe//telw="; + } {}; lsp = hself.lsp_1_2_0_1;