blob: f1fab2e5eb2ee4c39f60c269b91002369e922ffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
deployAndroidPackage,
lib,
package,
os,
arch,
autoPatchelfHook,
pkgs,
meta,
}:
deployAndroidPackage {
inherit package os arch;
nativeBuildInputs = lib.optionals (os == "linux") [ autoPatchelfHook ];
buildInputs = lib.optionals (os == "linux") [
pkgs.glibc
(lib.getLib pkgs.stdenv.cc.cc)
pkgs.zlib
pkgs.ncurses5
];
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
'';
inherit meta;
}
|