3
0
Fork 0
forked from mirrors/nixpkgs

wpsoffice: fix auto-patchelf dependencies

This commit is contained in:
rewine 2023-01-25 18:33:32 +08:00
parent 36aeaa3a6d
commit 1388b62e97

View file

@ -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"