summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authordalpd <denalp@proton.me>2023-07-14 18:36:22 +0300
committerdalpd <denalp@proton.me>2023-07-14 18:36:22 +0300
commitb9be587f5ed01c9548def9822c2dfb715fd24cca (patch)
tree84c7e3c14f1d97493f9bb148c1c760408aad82e3 /pkgs/development/haskell-modules/configuration-common.nix
parenta5c6661e35ff4c6e13caf6006dffaeebb3d8ba49 (diff)
downloadnixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar.gz
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar.bz2
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar.lz
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar.xz
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.tar.zst
nixpkgs-b9be587f5ed01c9548def9822c2dfb715fd24cca.zip
haskellPackages.patat: Patch to bump dependencies, override pandoc
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index beb1d7e5d9d..0c03ee52b08 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -270,14 +270,24 @@ self: super: {
   # 2023-06-10: Too strict version bound on https://github.com/haskell/ThreadScope/issues/118
   threadscope = doJailbreak super.threadscope;
 
-  # patat main branch has an unreleased commit that fixes the build by
-  # relaxing restrictive upper boundaries. This can be removed once there's a
-  # new release following version 0.8.8.0.
-  patat = appendPatch (fetchpatch {
+  patat = appendPatches [
+    # patat main branch has an unreleased commit that fixes the build by
+    # relaxing restrictive upper boundaries. This can be removed once there's a
+    # new release following version 0.8.8.0.
+    (fetchpatch {
     url = "https://github.com/jaspervdj/patat/commit/be9e0fe5642ba6aa7b25705ba17950923e9951fa.patch";
     sha256 = "sha256-Vxxi46qrkIyzYQZ+fe1vNTPldcQEI2rX2H40GvFJR2M=";
     excludes = ["stack.yaml" "stack.yaml.lock"];
-  }) super.patat;
+    })
+    # Patching with a commit bumping dependencies that's not released to hackage yet.
+    (fetchpatch {
+    url = "https://github.com/jaspervdj/patat/commit/b4c5a7e641b813ef1c34821984a9e897f4ecf84e.patch";
+    sha256 = "sha256-01xdlN3r3p/r8TwAzbcWoTMIBesGvL8HZcXJRDZyWQM=";
+    excludes = ["stack.yaml" "stack.yaml.lock"];
+    })
+    # Overriding the version pandoc dependency uses as the latest release has version bounds
+    # defined as >= 3.1  && < 3.2, can be removed once pandoc gets bumped by Stackage.
+  ] (super.patat.override { pandoc = self.pandoc_3_1_4; });
 
   # The latest release on hackage has an upper bound on containers which
   # breaks the build, though it works with the version of containers present