From 5e710aa4f758492895f903a8fd236d54d6b2e6df Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 12 Jul 2025 22:56:45 +0200 Subject: [PATCH] haskellPackages.xml-picklers: fix edge case in test suite We've noticed this issue on Hydra already some 10 years ago, but apparently never applied the patch the upstream developer authored later (but unfortunately never released). --- pkgs/development/haskell-modules/configuration-common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index be9ce186e3e3..1f2bb0174a32 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -762,6 +762,14 @@ with haskellLib; HerbiePlugin = dontCheck super.HerbiePlugin; wai-cors = dontCheck super.wai-cors; + # Apply patch fixing an incorrect QuickCheck property which occasionally causes false negatives + # https://github.com/Philonous/xml-picklers/issues/5 + xml-picklers = appendPatch (pkgs.fetchpatch { + name = "xml-picklers-fix-prop-xp-attribute.patch"; + url = "https://github.com/Philonous/xml-picklers/commit/887e5416b5e61c589cadf775d82013eb87751ea2.patch"; + sha256 = "sha256-EAyTVkAqCvJ0lRD0+q/htzBJ8iD5qP47j5i2fKhRrlw="; + }) super.xml-picklers; + # 2024-05-18: Upstream tests against a different pandoc version pandoc-crossref = dontCheck super.pandoc-crossref;