2018-11-27 19:36:27 +00:00
|
|
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
2018-02-20 23:31:16 +00:00
|
|
|
|
2018-11-27 19:36:27 +00:00
|
|
|
deployAndroidPackage {
|
|
|
|
inherit package os;
|
|
|
|
buildInputs = [ autoPatchelfHook ]
|
2019-11-09 23:52:53 +00:00
|
|
|
++ lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ];
|
2018-11-27 19:36:27 +00:00
|
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir
|
2019-10-20 08:07:24 +01:00
|
|
|
'' + ''
|
2015-04-22 15:29:18 +01:00
|
|
|
mkdir -p $out/bin
|
2018-11-27 19:36:27 +00: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 15:29:18 +01:00
|
|
|
do
|
2018-11-27 19:36:27 +00:00
|
|
|
ln -s $i
|
2015-04-22 15:29:18 +01:00
|
|
|
done
|
2012-11-07 20:10:39 +00:00
|
|
|
'';
|
|
|
|
}
|