calibre: add image optimization programs (#362822)

This commit is contained in:
Aleksana 2024-12-10 11:39:47 +08:00 committed by GitHub
commit dda087e159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,8 @@
libstemmer,
libuchardet,
libusb1,
libwebp,
optipng,
piper-tts,
pkg-config,
podofo,
@ -96,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
ps:
with ps;
[
(apsw.overrideAttrs (oldAttrs: {
(apsw.overrideAttrs (_oldAttrs: {
setupPyBuildFlags = [ "--enable=load_extension" ];
}))
beautifulsoup4
@ -136,10 +138,10 @@ stdenv.mkDerivation (finalAttrs: {
# does not support by simply omitting qtwebengine.
pyqt6-webengine
]
++ lib.optional (unrarSupport) unrardll
++ lib.optional unrarSupport unrardll
))
xdg-utils
] ++ lib.optional (speechSupport) speechd-minimal;
] ++ lib.optional speechSupport speechd-minimal;
installPhase = ''
runHook preInstall
@ -190,6 +192,13 @@ stdenv.mkDerivation (finalAttrs: {
wrapProgram $program \
''${qtWrapperArgs[@]} \
''${gappsWrapperArgs[@]} \
--prefix PATH : ${
lib.makeBinPath [
libjpeg
libwebp
optipng
]
} \
${if popplerSupport then popplerArgs else ""}
done
'';