From 1388b62e97d069c9362caf42cbdcb725fa940649 Mon Sep 17 00:00:00 2001 From: rewine Date: Wed, 25 Jan 2023 18:33:32 +0800 Subject: [PATCH] wpsoffice: fix auto-patchelf dependencies --- pkgs/applications/office/wpsoffice/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/office/wpsoffice/default.nix b/pkgs/applications/office/wpsoffice/default.nix index d19a4a88fe7d..6aa7c8f78d13 100644 --- a/pkgs/applications/office/wpsoffice/default.nix +++ b/pkgs/applications/office/wpsoffice/default.nix @@ -83,6 +83,11 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; dontWrapGApps = true; + 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} + ''; + postFixup = '' for f in "$out"/bin/*; do echo "Wrapping $f"