scrcpy: use adb from android-tools

android-tools is built from source and available on aarch64-linux, while platform tools isn't
This commit is contained in:
Yureka 2023-06-18 19:11:59 +02:00
parent 8bcef0a5fe
commit 3e51c9a04c
2 changed files with 3 additions and 5 deletions

View file

@ -10,7 +10,7 @@
, runtimeShell
, installShellFiles
, platform-tools
, android-tools
, ffmpeg
, libusb1
, SDL2
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
ln -s "${prebuilt_server}" "$out/share/scrcpy/scrcpy-server"
# runtime dep on `adb` to push the server
wrapProgram "$out/bin/scrcpy" --prefix PATH : "${platform-tools}/bin"
wrapProgram "$out/bin/scrcpy" --prefix PATH : "${android-tools}/bin"
'' + lib.optionalString stdenv.isLinux ''
substituteInPlace $out/share/applications/scrcpy-console.desktop \
--replace "/bin/bash" "${runtimeShell}"

View file

@ -12285,9 +12285,7 @@ with pkgs;
inherit (darwin.apple_sdk.libs) utmp;
};
scrcpy = callPackage ../misc/scrcpy {
inherit (androidenv.androidPkgs_9_0) platform-tools;
};
scrcpy = callPackage ../misc/scrcpy { };
screen-message = callPackage ../tools/X11/screen-message { };