mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 20:19:16 +03:00
rustdesk: correct linux scopes
This commit is contained in:
parent
674c138ef0
commit
10125ee384
@ -114,7 +114,6 @@ rustPlatform.buildRustPackage rec {
|
||||
libopus
|
||||
libaom
|
||||
libxkbcommon
|
||||
xdotool
|
||||
pam
|
||||
pango
|
||||
zlib
|
||||
@ -130,6 +129,7 @@ rustPlatform.buildRustPackage rec {
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
alsa-lib
|
||||
xdotool
|
||||
];
|
||||
|
||||
# Add static ui resources and libsciter to same folder as binary so that it
|
||||
@ -139,7 +139,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
# .so needs to be next to the executable
|
||||
mv $out/bin/rustdesk $out/lib/rustdesk
|
||||
ln -s ${libsciter}/lib/libsciter-gtk.so $out/lib/rustdesk
|
||||
${lib.optionalString stdenv.isLinux "ln -s ${libsciter}/lib/libsciter-gtk.so $out/lib/rustdesk"}
|
||||
|
||||
makeWrapper $out/lib/rustdesk/rustdesk $out/bin/rustdesk \
|
||||
--chdir "$out/share"
|
||||
@ -149,7 +149,7 @@ rustPlatform.buildRustPackage rec {
|
||||
install -Dm0644 $src/res/logo.svg $out/share/icons/hicolor/scalable/apps/rustdesk.svg
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
postFixup = lib.optionalString stdenv.isLinux ''
|
||||
patchelf --add-rpath "${libayatana-appindicator}/lib" "$out/lib/rustdesk/rustdesk"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user