diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index aa40f5e0f62e..ec8e8ae248a7 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -176,13 +176,23 @@ self: super: { }) super.math-functions; # Deal with infinite and NaN values generated by QuickCheck-2.14.3 - aeson = appendPatches [ - (pkgs.fetchpatch { - name = "aeson-quickcheck-2.14.3-double-workaround.patch"; - url = "https://github.com/haskell/aeson/commit/58766a1916b4980792763bab74f0c86e2a7ebf20.patch"; - sha256 = "1jk2xyi9g6dfjsi6hvpvkpmag3ivimipwy1izpbidf3wvc9cixs3"; - }) - ] super.aeson; + inherit ( + let + aesonQuickCheckPatch = appendPatches [ + (pkgs.fetchpatch { + name = "aeson-quickcheck-2.14.3-double-workaround.patch"; + url = "https://github.com/haskell/aeson/commit/58766a1916b4980792763bab74f0c86e2a7ebf20.patch"; + sha256 = "1jk2xyi9g6dfjsi6hvpvkpmag3ivimipwy1izpbidf3wvc9cixs3"; + }) + ]; + in + { + aeson = aesonQuickCheckPatch super.aeson; + aeson_2_1_2_1 = aesonQuickCheckPatch super.aeson_2_1_2_1; + } + ) aeson + aeson_2_1_2_1 + ; # There are numerical tests on random data, that may fail occasionally lapack = dontCheck super.lapack;