From 386a1ed0752d3cb885a34b4c91d6500b06caf552 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 14 Jun 2022 15:52:55 +0200 Subject: [PATCH] haskellPackages.large-hashable: 2021-11-01 -> 2022-06-10 aeson 2.0 was finally addressed upstream, allowing us to drop a patch. --- .../haskell-modules/configuration-common.nix | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 423aa19b6f95..e02f38605a3d 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2096,15 +2096,18 @@ self: super: { }; } self.haskell-ci; - large-hashable = lib.pipe super.large-hashable [ - # 2022-03-21: use version from git which includes support for GHC 9.0.1 + large-hashable = lib.pipe (super.large-hashable.override { + # https://github.com/factisresearch/large-hashable/commit/5ec9d2c7233fc4445303564047c992b693e1155c + utf8-light = null; + }) [ + # 2022-03-21: use version from git which supports GHC 9.{0,2} and aeson 2.0 (assert super.large-hashable.version == "0.1.0.4"; overrideSrc { - version = "unstable-2021-11-01"; + version = "unstable-2022-06-10"; src = pkgs.fetchFromGitHub { owner = "factisresearch"; repo = "large-hashable"; - rev = "b4e6b3d23c2b1af965ffcc055f5405ff673e66cf"; - sha256 = "1bgf37qfzdyjhpgnj9aipwzpa06nc7b1g4f64xsmknyds7ffhixz"; + rev = "4d149c828c185bcf05556d1660f79ff1aec7eaa1"; + sha256 = "141349qcw3m93jw95jcha9rsg2y8sn5ca5j59cv8xmci38k2nam0"; }; }) # Provide newly added dependencies @@ -2117,15 +2120,12 @@ self: super: { self.inspection-testing ]; })) - # 2022-03-21: patch for aeson 2.0 - # https://github.com/factisresearch/large-hashable/pull/22 - (appendPatches [ - (fetchpatch { - name = "large-hashable-aeson-2.0.patch"; - url = "https://github.com/factisresearch/large-hashable/commit/7094ef0ba55b4848cb57bae73d119acfb496a4c9.patch"; - sha256 = "0ckiii0s697h817z65jwlmjzqw2ckpm815wqcnxjigf6v9kxps8j"; - }) - ]) + # https://github.com/factisresearch/large-hashable/issues/24 + (overrideCabal (drv: { + testFlags = drv.testFlags or [] ++ [ + "-n" "^Data.LargeHashable.Tests.Inspection:genericSumGetsOptimized$" + ]; + })) ]; # BSON defaults to requiring network instead of network-bsd which is