From 1c496e5cedc953a9f3d20d2e02bb07b90c34ea73 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 22 Dec 2025 20:14:43 +0100 Subject: [PATCH] haskellPackages.streamly-core: Fix cross-compilation --- .../development/haskell-modules/configuration-common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 2cd32ca78e9b..de1de5edaa37 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -322,6 +322,15 @@ with haskellLib; # 2025-02-10: Too strict bounds on tasty < 1.5 tasty-hunit-compat = doJailbreak super.tasty-hunit-compat; + # Makes cross-compilation hang + # https://github.com/composewell/streamly/issues/2840 + streamly-core = overrideCabal (drv: { + postPatch = '' + substituteInPlace src/Streamly/Internal/Data/Array/Stream.hs \ + --replace-fail '{-# INLINE splitAtArrayListRev #-}' "" + ''; + }) super.streamly-core; + # Expected failures are fixed as of GHC-9.10, # but the tests haven't been updated yet. # https://github.com/ocharles/weeder/issues/198