Skip to content

Commit

Permalink
rustdesk-flutter: add missing libayatana-appindicator patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Sep 23, 2024
1 parent e120029 commit 165a6e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/by-name/ru/rustdesk-flutter/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pam,
makeDesktopItem,
rustPlatform,
libayatana-appindicator,
rustc,
rustfmt,
xdotool,
Expand Down Expand Up @@ -162,6 +163,8 @@ flutter316.buildFlutterApplication rec {
patches = [ ./make-build-reproducible.patch ];

postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
--replace-fail "libayatana-appindicator3.so.1" "${lib.getLib libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" ""
# The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version
cp ${./Cargo.lock} ../Cargo.lock
Expand Down

0 comments on commit 165a6e5

Please sign in to comment.