haskellPackages.pandoc-crossref: revert patch requiring pandoc>=3.8

- The linked issue has been resolved, but the updated bounds are only
  available on master.
- 0.3.21 contains a patch for an interface deprecation in pandoc 3.8
  which we need to revert in order to build with pandoc 3.7.
This commit is contained in:
sternenseemann
2025-09-21 14:34:00 +02:00
parent 409561c736
commit f2b98de78a
3 changed files with 18 additions and 5 deletions
@@ -897,8 +897,24 @@ with haskellLib;
}) super.xml-picklers;
# 2025-08-03: Too strict bounds on open-browser, data-default and containers
# https://github.com/lierdakil/pandoc-crossref/issues/478
pandoc-crossref = doJailbreak super.pandoc-crossref;
# https://github.com/lierdakil/pandoc-crossref/issues/478 krank:ignore-line
pandoc-crossref = lib.pipe super.pandoc-crossref [
(warnAfterVersion "0.3.21")
doJailbreak
# We are still using pandoc == 3.7.*
(appendPatch (
lib.warnIf (lib.versionAtLeast self.pandoc.version "3.8")
"haskellPackages.pandoc-crossref: remove revert of pandoc-3.8 patch"
pkgs.fetchpatch
{
name = "pandoc-crossref-revert-pandoc-3.8-highlight.patch";
url = "https://github.com/lierdakil/pandoc-crossref/commit/b0c35a59d5a802f6525407bfeb31699ffd0b4671.patch";
hash = "sha256-MIITL9Qr3+1fKf1sTwHzXPcYTt3YC+vr9CpMgqsBXlc=";
revert = true;
}
))
];
# Too strict upper bound on data-default-class (< 0.2)
# https://github.com/stackbuilders/dotenv-hs/issues/203
@@ -4564,7 +4564,6 @@ broken-packages:
- pan-os-syslog # failure in job https://hydra.nixos.org/build/233244422 at 2023-09-02
- pandoc-citeproc # failure in job https://hydra.nixos.org/build/233198462 at 2023-09-02
- pandoc-columns # failure in job https://hydra.nixos.org/build/233234538 at 2023-09-02
- pandoc-crossref # failure in job https://hydra.nixos.org/build/307611190 at 2025-09-19
- pandoc-csv2table # failure in job https://hydra.nixos.org/build/233229925 at 2023-09-02
- pandoc-dhall-decoder # failure in job https://hydra.nixos.org/build/307611186 at 2025-09-19
- pandoc-emphasize-code # failure in job https://hydra.nixos.org/build/252733347 at 2024-03-16
-2
View File
@@ -499472,9 +499472,7 @@ self: {
doHaddock = false;
description = "Pandoc filter for cross-references";
license = lib.licenses.gpl2Only;
hydraPlatforms = lib.platforms.none;
mainProgram = "pandoc-crossref";
broken = true;
}
) { };