You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
642 B

  1. {deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
  2. deployAndroidPackage {
  3. inherit package os;
  4. buildInputs = [ autoPatchelfHook ]
  5. ++ lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ];
  6. patchInstructions = lib.optionalString (os == "linux") ''
  7. addAutoPatchelfSearchPath $packageBaseDir/lib64
  8. autoPatchelf --no-recurse $packageBaseDir/lib64
  9. autoPatchelf --no-recurse $packageBaseDir
  10. mkdir -p $out/bin
  11. cd $out/bin
  12. find $out/libexec/android-sdk/platform-tools -type f -executable -mindepth 1 -maxdepth 1 -not -name sqlite3 | while read i
  13. do
  14. ln -s $i
  15. done
  16. '';
  17. }