From fa47db81901062e49ba8cb431f5013c95238574d Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 30 Apr 2025 20:02:01 +0300 Subject: [PATCH] haskellPackages.bsb-http-chunked: skip tests on 32 bit platforms The test case that's failing compares output against blaze-builder which behaves differently due to an apparent bug. I (sternenseemann) will investigate that further, but luckily this is irrelevant for pandoc. Co-authored-by: sternenseemann --- .../haskell-modules/configuration-common.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 28c3d245c935..97f358c1de24 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -3003,6 +3003,18 @@ self: super: url = "https://github.com/sjakobi/bsb-http-chunked/commit/689bf9ce12b8301d0e13a68e4a515c2779b62947.patch"; sha256 = "sha256-ZdCXMhni+RGisRODiElObW5c4hKy2giWQmWnatqeRJo="; })) + + # blaze-builder's code is missing the following fix, causing it to produce + # incorrect chunking on 32 bit platforms: + # https://github.com/sjakobi/bsb-http-chunked/commit/dde7c9fa33bb6e55b44c5f3e3024215475f64d4c + (overrideCabal (drv: { + testFlags = + drv.testFlags or [ ] + ++ lib.optionals pkgs.stdenv.hostPlatform.is32bit [ + "-p" + "!/Identical output as Blaze/" + ]; + })) ]; # jailbreak to allow deepseq >= 1.5, https://github.com/jumper149/blucontrol/issues/3