From 052d60c4f3d5277f1082588475e06575c2fd97f8 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 14 Aug 2023 15:29:05 +0200 Subject: [PATCH] haskellPackages.aeson: disable test suite on 32bit platforms The failures have to do with lowered double precision on such platforms. They are reported upstream and will hopefully be fixed soon. --- pkgs/development/haskell-modules/configuration-common.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 60606bc78d41..e951e0a08ce5 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -195,7 +195,11 @@ self: super: { ]; in { - aeson = aesonQuickCheckPatch super.aeson; + aeson = overrideCabal { + # aeson's test suite includes some tests with big numbers that fail on 32bit + # https://github.com/haskell/aeson/issues/1060 + doCheck = !pkgs.stdenv.hostPlatform.is32bit; + } (aesonQuickCheckPatch super.aeson); } ) aeson ;