2020-04-24 23:36:52 +00:00
|
|
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
|
|
|
|
|
|
|
deployAndroidPackage {
|
|
|
|
inherit package os;
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = lib.optionals (os == "linux") [ autoPatchelfHook ];
|
2023-04-12 12:48:02 +00:00
|
|
|
buildInputs = lib.optionals (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc.lib pkgs.zlib pkgs.ncurses5 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir
|
|
|
|
'' + ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cd $out/bin
|
|
|
|
find $out/libexec/android-sdk/platform-tools -type f -executable -mindepth 1 -maxdepth 1 -not -name sqlite3 | while read i
|
|
|
|
do
|
|
|
|
ln -s $i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
}
|