From 96cdae6026120cdcd82f28aa8ad18474fe7043ec Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 21 Mar 2022 21:36:26 +0100 Subject: [PATCH] haskellPackages.pipes-aeson: Patch for aeson-2 --- .../haskell-modules/configuration-common.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 360d75f5e8c3..435efe74f04c 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1716,6 +1716,23 @@ self: super: { (generateOptparseApplicativeCompletion "hci") ]; + pipes-aeson = appendPatches [ + # Dependency of the aeson-2 patch + (pkgs.fetchpatch { + name = "pipes-aeson-add-loop.patch"; + url = "https://github.com/k0001/pipes-aeson/commit/d22133b4a678edbb52bcaec5079dc88ccc0de1d3.patch"; + sha256 = "sha256-5o5ys1P1+QB4rjLCYok5AcPRWCtRiecP/TqCFm8ulVY="; + includes = ["src/Pipes/Aeson.hs" "src/Pipes/Aeson/Internal.hs" "src/Pipes/Aeson/Unchecked.hs"]; + }) + # https://github.com/k0001/pipes-aeson/pull/20 + (pkgs.fetchpatch { + name = "pipes-aeson-aeson-2.patch"; + url = "https://github.com/hercules-ci/pipes-aeson/commit/ac735c9cd459c6ef51ba82325d1c55eb67cb7b2c.patch"; + sha256 = "sha256-viWZ6D5t79x50RXiOjP6UeQ809opgNFYZOP+h+1KJh0="; + includes = ["src/Pipes/Aeson.hs" "src/Pipes/Aeson/Internal.hs" "src/Pipes/Aeson/Unchecked.hs"]; + }) + ] super.pipes-aeson; + # Readline uses Distribution.Simple from Cabal 2, in a way that is not # compatible with Cabal 3. No upstream repository found so far readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super.readline;