From 50b75325305279d26777f6c7790cf9b64c2993d9 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 23 Jun 2025 11:51:19 +0200 Subject: [PATCH] haskellPackages.tree-diff: disable flaky test / failing on edge case There hasn't been movement on this in many years since the package seems to be in maintenance mode only, but it is a prominently used dependency, so we'll have to ignore this, pretty much. Reference https://github.com/haskellari/tree-diff/issues/79. Reference https://github.com/NixOS/nixpkgs/pull/384127#issuecomment-2995073608. --- .../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 32d2d15f437a6..142999b5bb12b 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2831,6 +2831,15 @@ self: super: # The hackage source is somehow missing a file present in the repo (tests/ListStat.hs). sym = dontCheck super.sym; + # 2024-01-24: https://github.com/haskellari/tree-diff/issues/79 + # exprParser fails to parse pretty printed structure correctly when the randomizer uses newlines (?) + tree-diff = overrideCabal (drv: { + testFlags = drv.testFlags or [ ] ++ [ + "-p" + "!/parsec-ansi-wl-pprint/" + ]; + }) super.tree-diff; + # base <4.19 # https://github.com/well-typed/large-records/issues/168 large-generics = doJailbreak super.large-generics;