From 4a2f25da5dd9962b414b71ddae48a86c4d5be95f Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 2 Apr 2026 20:20:29 +0200 Subject: [PATCH] haskellPackages.criterion: fix test race condition with tasty 1.5.4 --- .../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 649b64ec18f3..52b192c4bad6 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -375,6 +375,15 @@ with haskellLib; ''; }) super.streamly-core; + # Work around tasty >= 1.5.4 parallelism breaking the test suite + criterion = appendPatches [ + (pkgs.fetchpatch { + name = "criterion-tasty-1.5.4.patch"; + url = "https://github.com/haskell/criterion/commit/d555422d1779434432489efbc19d75011226c3e6.patch"; + hash = "sha256-VRSfdzT/mzdRSMQmmIeycuChvRN/VDhYsHJQb0bRMaA="; + }) + ] super.criterion; + # Expected failures are fixed as of GHC-9.10, # but the tests haven't been updated yet. # https://github.com/ocharles/weeder/issues/198