From ef8d71482ed09b4868fd7482feacdc355033910f Mon Sep 17 00:00:00 2001 From: SharzyL Date: Wed, 3 May 2023 13:49:38 +0800 Subject: [PATCH] wpsoffice: let libelf.so depends on libudev.so --- pkgs/applications/office/wpsoffice/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/office/wpsoffice/default.nix b/pkgs/applications/office/wpsoffice/default.nix index 823c4c55114f..0e0a622de4a9 100644 --- a/pkgs/applications/office/wpsoffice/default.nix +++ b/pkgs/applications/office/wpsoffice/default.nix @@ -11,6 +11,7 @@ , mesa , libtiff , cups +, udev , xorg , makeWrapper , useChineseVersion ? false @@ -52,9 +53,12 @@ stdenv.mkDerivation rec { nspr mesa libtiff + udev ]; - runtimeDependencies = [ cups.lib ]; + runtimeDependencies = [ + cups.lib + ]; installPhase = '' runHook preInstall @@ -79,6 +83,8 @@ 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} + # dlopen dependency + patchelf --add-needed libudev.so.1 $out/opt/kingsoft/wps-office/office6/addons/cef/libcef.so ''; postFixup = ''