Commit 1c496e5c authored by OPNA2608's avatar OPNA2608
Browse files

haskellPackages.streamly-core: Fix cross-compilation

parent 7f08d047
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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