2018-11-27 19:36:27 +00:00
|
|
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
|
|
|
|
|
|
|
deployAndroidPackage {
|
|
|
|
inherit package os;
|
|
|
|
buildInputs = [ autoPatchelfHook ]
|
2020-01-07 07:02:13 +00:00
|
|
|
++ lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.zlib pkgs.openssl_1_0_2.out pkgs.ncurses5 ];
|
2018-11-27 19:36:27 +00:00
|
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib
|
|
|
|
autoPatchelf $packageBaseDir/lib
|
|
|
|
autoPatchelf $packageBaseDir/bin
|
|
|
|
'';
|
|
|
|
}
|