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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user