Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/pkgs/by-name/ct/ctpv/use-polite-flag.patch

14 lines
350 B
Diff
Raw Permalink Normal View History

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]: https://github.com/NikitaIvanovV/ctpv/blob/4efa0f976eaf8cb814e0aba4f4f1a1d12ee9262e/README.md#L58 [2]: github:NixOS/nixpkgs#223487 [3]: github:NikitaIvanovV/ctpv#90
2025-05-01 13:32:56 +02:00
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'
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 1813ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API