2018-11-27 20:36:27 +01:00
|
|
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
2018-02-21 00:31:16 +01:00
|
|
|
|
2018-11-27 20:36:27 +01:00
|
|
|
deployAndroidPackage {
|
|
|
|
inherit package os;
|
|
|
|
buildInputs = [ autoPatchelfHook ]
|
|
|
|
++ lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ];
|
|
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir
|
2015-04-22 16:29:18 +02:00
|
|
|
|
|
|
|
mkdir -p $out/bin
|
2018-11-27 20:36:27 +01:00
|
|
|
cd $out/bin
|
|
|
|
find $out/libexec/android-sdk/platform-tools -type f -executable -mindepth 1 -maxdepth 1 -not -name sqlite3 | while read i
|
2015-04-22 16:29:18 +02:00
|
|
|
do
|
2018-11-27 20:36:27 +01:00
|
|
|
ln -s $i
|
2015-04-22 16:29:18 +02:00
|
|
|
done
|
2012-11-07 21:10:39 +01:00
|
|
|
'';
|
|
|
|
}
|