mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
calibre: add image optimization programs (#362822)
This commit is contained in:
commit
dda087e159
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user