From 88c678cae81ce989c2c7d37cbeb0cc475cf97fc9 Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Sun, 9 Oct 2022 12:00:11 -0400 Subject: [PATCH] haskell.packages.ghc942.cabal2nix: mark as broken on aarch64-linux --- .../haskell-modules/configuration-ghc-9.4.x.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index ea4bea38cee6..b5bf696cc761 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -74,7 +74,12 @@ in { # removed after https://github.com/NixOS/cabal2nix/pull/571 is merged. # TODO(@sternenseemann): merge and release a fixed version distribution-nixpkgs = dontCheck super.distribution-nixpkgs; - cabal2nix = dontCheck super.cabal2nix; + cabal2nix = + # cabal2nix depends on foundation, which is broken on aarch64-linux. + # https://github.com/haskell-foundation/foundation/issues/571 + overrideCabal + (drv: { badPlatforms = [ "aarch64-linux" ]; }) + (dontCheck super.cabal2nix); cabal2nix-unstable = dontCheck super.cabal2nix-unstable; # build fails on due to ghc api changes