From 7f4582ea1acf8cd61ea33242e81a37d90d3927ae Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 7 Apr 2026 11:02:14 +0200 Subject: [PATCH] haskellPackages.hpc-codecov: fix tests with tasty 1.5.4 --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 15838c5bf0cc..558900942a07 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1581,6 +1581,12 @@ with haskellLib; sha256 = "056rk58v9h114mjx62f41x971xn9p3nhsazcf9zrcyxh1ymrdm8j"; }) super.hpc-coveralls; + hpc-codecov = overrideCabal (drv: { + # Work around test suite race condition due to tasty >= 1.5.4 + # https://github.com/8c6794b6/hpc-codecov/issues/52 + testFlags = drv.testFlags or [ ] ++ [ "-j1" ]; + }) super.hpc-codecov; + # sexpr is old, broken and has no issue-tracker. Let's fix it the best we can. sexpr = appendPatch ./patches/sexpr-0.2.1.patch ( overrideCabal (drv: {