pandoc: make reference workaround conditional on typst version

This prevents an unnecessary rebuild of pkgs.pandoc which is very
expensive.
This commit is contained in:
sternenseemann
2025-01-23 23:41:28 +01:00
parent ccb3770e1a
commit f4d4ac071a
+3
View File
@@ -39,6 +39,9 @@ in
remove-references-to \
-t ${pandoc-cli.scope.pandoc} \
$out/bin/pandoc
''
# https://github.com/jgm/typst-hs/commit/9707b74ce60d71c2ba0f35249ffbd01dea197a6e
+ lib.optionalString (lib.versionAtLeast pandoc-cli.scope.typst.version "0.6.1") ''
remove-references-to \
-t ${pandoc-cli.scope.typst} \
$out/bin/pandoc