From 600fd969f6d317524f4e859824f577663d795d15 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 20 Mar 2023 13:53:35 +0100 Subject: [PATCH] haskell.packages.ghc94.weeder: don't test on aarch64 cborg does not compile with GHC >= 9.4 and aarch64 --- .../haskell-modules/configuration-ghc-9.4.x.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 45cf4b5d4e92..f9ce2a5165aa 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -237,4 +237,14 @@ in { # failing during the Setup.hs phase: https://github.com/gtk2hs/gtk2hs/issues/323. gtk2hs-buildtools = appendPatch ./patches/gtk2hs-buildtools-fix-ghc-9.4.x.patch super.gtk2hs-buildtools; + # https://github.com/well-typed/cborg/pull/307 + # https://github.com/well-typed/cborg/pull/304 + # https://github.com/well-typed/cborg/issues/309#issuecomment-1471862045 + cborg = overrideCabal rec { + badPlatforms = lib.platforms.aarch64; + hydraPlatforms = lib.subtractLists badPlatforms lib.platforms.all; + } super.cborg; + weeder = overrideCabal { + inherit (self.cborg.meta) hydraPlatforms; + } super.weeder; }