mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
[Backport release-24.11] rustdesk-flutter: fix build (#356694)
rustdesk-flutter: fix build (#356450)
(cherry picked from commit 02d0071fa9
)
Co-authored-by: Bot_wxt1221 <3264117476@qq.com>
This commit is contained in:
parent
19c8994e0c
commit
c5b561dcc4
@ -163,8 +163,11 @@ flutter319.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"
|
||||
if [ $cargoDepsCopy ]; then # That will be inherited to buildDartPackage and it doesn't have cargoDepsCopy
|
||||
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
|
||||
--replace-fail "libayatana-appindicator3.so.1" "${lib.getLib libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
|
||||
fi
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user