Unverified Commit b9f5606a authored by gileri's avatar gileri
Browse files

rustdesk: Add libayatana-appindicator to rpath

To allow using --tray flag, used through tray-icon, libappindicator,
libappindicator_sys transitive rust crates dependencies
parent 5c6e85ee
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;