diff options
author | rewine <luhongxu@deepin.org> | 2024-06-10 13:57:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 13:57:46 +0800 |
commit | 2bbc9c09badd619028f512f80f47af23a90f3e5d (patch) | |
tree | b7f755d3ef784d1713a4f475dba688055ce23d15 /pkgs/applications | |
parent | 3844793c027404189bf07c979434eff1d55744d0 (diff) | |
parent | da74ad3a905aa45ee6e4f8b4b69b56930195adcb (diff) |
Merge pull request #318500 from pokon548/fix-wps-pdf-export
wpsoffice{-cn}: fix pdf export not working
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/office/wpsoffice/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/office/wpsoffice/default.nix b/pkgs/applications/office/wpsoffice/default.nix index 8f6b0d650b28a..a9bb14d1b4e2a 100644 --- a/pkgs/applications/office/wpsoffice/default.nix +++ b/pkgs/applications/office/wpsoffice/default.nix @@ -19,6 +19,7 @@ , curl , coreutils , cacert +, libjpeg , useChineseVersion ? false }: let @@ -72,6 +73,7 @@ stdenv.mkDerivation rec { alsa-lib at-spi2-core libtool + libjpeg libxkbcommon nspr mesa @@ -120,6 +122,9 @@ stdenv.mkDerivation rec { preFixup = '' # The following libraries need libtiff.so.5, but nixpkgs provides libtiff.so.6 patchelf --replace-needed libtiff.so.5 libtiff.so $out/opt/kingsoft/wps-office/office6/{libpdfmain.so,libqpdfpaint.so,qt/plugins/imageformats/libqtiff.so,addons/pdfbatchcompression/libpdfbatchcompressionapp.so} + patchelf --add-needed libtiff.so $out/opt/kingsoft/wps-office/office6/libwpsmain.so + # Fix: Wrong JPEG library version: library is 62, caller expects 80 + patchelf --add-needed libjpeg.so $out/opt/kingsoft/wps-office/office6/libwpsmain.so # dlopen dependency patchelf --add-needed libudev.so.1 $out/opt/kingsoft/wps-office/office6/addons/cef/libcef.so ''; |