Unverified Commit dda087e1 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

calibre: add image optimization programs (#362822)

parents e2f4abd9 a33355be
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -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
    '';