From 2c5704bf98d997c5e56b19a9f532a879425aa4e8 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 8 Jun 2023 13:05:43 +0200 Subject: [PATCH] haskellPackages.vector: fix test suite with QuickCheck-2.14.3 --- .../haskell-modules/configuration-common.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 854658bf3f62..606a4643e115 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -157,6 +157,16 @@ self: super: { "vector-tests-O0" "vector-tests-O2" ]; + patches = [ + # Workaround almost guaranteed floating point errors in test suite with quickcheck 2.14.3 + # https://github.com/haskell/vector/issues/460 + (pkgs.fetchpatch { + name = "quickcheck-2.14.3-float-workaround.patch"; + url = "https://github.com/haskell/vector/commit/df8dd8e8e84005aa6b187b03cd502f3c6e18cf3c.patch"; + sha256 = "040wg8mqlkdnrl5axy9wk0mlpn8rpc4vc4afpxignj9i7yc4pfjj"; + stripLen = 1; + }) + ]; }) super.vector; # There are numerical tests on random data, that may fail occasionally