nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 21 lines 893 B view raw
1{deployAndroidPackage, lib, package, os, autoPatchelfHook, makeWrapper, pkgs, pkgs_i686}: 2 3deployAndroidPackage { 4 inherit package os; 5 buildInputs = [ autoPatchelfHook makeWrapper ] ++ 6 lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 pkgs.libcxx ]; 7 patchInstructions = '' 8 ${lib.optionalString (os == "linux") '' 9 addAutoPatchelfSearchPath $packageBaseDir/lib 10 if [[ -d $packageBaseDir/lib64 ]]; then 11 addAutoPatchelfSearchPath $packageBaseDir/lib64 12 autoPatchelf --no-recurse $packageBaseDir/lib64 13 fi 14 autoPatchelf --no-recurse $packageBaseDir 15 ''} 16 17 wrapProgram $PWD/mainDexClasses \ 18 --prefix PATH : ${pkgs.jdk8}/bin 19 ''; 20 noAuditTmpdir = true; # The checker script gets confused by the build-tools path that is incorrectly identified as a reference to /build 21}