rustdesk: Add libayatana-appindicator to rpath

To allow using --tray flag, used through tray-icon, libappindicator,
libappindicator_sys transitive rust crates dependencies
This commit is contained in:
gileri 2023-11-13 22:42:54 +01:00
parent 5c6e85ee47
commit b9f5606a55
No known key found for this signature in database
GPG Key ID: 728E3BDB556079F6

View File

@ -11,6 +11,7 @@
, glib
, gst_all_1
, gtk3
, libayatana-appindicator
, libgit2
, libpulseaudio
, libsodium
@ -145,6 +146,10 @@ rustPlatform.buildRustPackage rec {
install -Dm0644 $src/res/logo.svg $out/share/icons/hicolor/scalable/apps/rustdesk.svg
'';
postFixup = ''
patchelf --add-rpath "${libayatana-appindicator}/lib" "$out/lib/rustdesk/rustdesk"
'';
env = {
SODIUM_USE_PKG_CONFIG = true;
ZSTD_SYS_USE_PKG_CONFIG = true;