2018-11-27 19:36:27 +00:00
|
|
|
{deployAndroidPackage, lib, package, os, autoPatchelfHook, makeWrapper, pkgs, pkgs_i686}:
|
|
|
|
|
|
|
|
deployAndroidPackage {
|
|
|
|
inherit package os;
|
|
|
|
buildInputs = [ autoPatchelfHook makeWrapper ] ++
|
2020-08-01 15:53:51 +01:00
|
|
|
lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 pkgs.libcxx ];
|
2018-11-27 19:36:27 +00:00
|
|
|
patchInstructions = ''
|
|
|
|
${lib.optionalString (os == "linux") ''
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib
|
2020-02-14 10:36:11 +00:00
|
|
|
if [[ -d $packageBaseDir/lib64 ]]; then
|
|
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib64
|
|
|
|
autoPatchelf --no-recurse $packageBaseDir/lib64
|
|
|
|
fi
|
2018-11-27 19:36:27 +00:00
|
|
|
autoPatchelf --no-recurse $packageBaseDir
|
|
|
|
''}
|
|
|
|
|
|
|
|
wrapProgram $PWD/mainDexClasses \
|
|
|
|
--prefix PATH : ${pkgs.jdk8}/bin
|
|
|
|
'';
|
|
|
|
noAuditTmpdir = true; # The checker script gets confused by the build-tools path that is incorrectly identified as a reference to /build
|
|
|
|
}
|