nixpkgs/pkgs/by-name/ct/ctpv/use-polite-flag.patch
octvs d16d20a4f5
ctpv: fix img previews and correct dependency
Add missing pdf preview dependency. `ctpv` uses `pdftoppm` [1] to
preview pdf files. Required dependency was not included on the last PR
targeting `ctpv`, although it added the tools for other ftypes [2].

Fix chafa image privews by passing the missing flag via a patch. This
comes from a year long bug fix PR open at upstream, for details refer
there [3].

[1]: 4efa0f976e/README.md (L58)
[2]: github:NixOS/nixpkgs#223487
[3]: github:NikitaIvanovV/ctpv#90
2025-05-14 14:31:35 +02:00

14 lines
350 B
Diff

diff --git a/sh/helpers.sh b/sh/helpers.sh
index fef8691..229d38f 100644
--- a/sh/helpers.sh
+++ b/sh/helpers.sh
@@ -73,7 +73,7 @@ is_anim_image() {
chafa_run() {
format='-f symbols'
autochafa && format=
- chafasixel && format='-f sixels'
+ chafasixel && format='-f sixels --polite on'
chafa -s "${w}x${h}" $format "$1" | sed 's/#/\n#/g'
}