From 81b8cb86244a877304c0a066bce688c9db52950f Mon Sep 17 00:00:00 2001 From: libjared Date: Wed, 8 Jun 2022 09:25:12 -0500 Subject: [PATCH] haskell.packages.ghcjs.ghcjs-base: fix build The latest aeson doesn't build in ghcjs because it includes text-short in its dependency tree, which hangs on checkPhase because it uses C FFI. But since ghcjs-base has an upper bound on aeson<1.6 anyway, just override it. --- pkgs/development/haskell-modules/configuration-ghcjs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix index bab115ce6417..0578c3f677fe 100644 --- a/pkgs/development/haskell-modules/configuration-ghcjs.nix +++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix @@ -20,6 +20,7 @@ self: super: ghcjs-base = dontCheck (self.callPackage ../compilers/ghcjs/ghcjs-base.nix { fetchFromGitHub = pkgs.buildPackages.fetchFromGitHub; + aeson = self.aeson_1_5_6_0; }); # GHCJS does not ship with the same core packages as GHC.