anchor.diff:      done
   
       # Patch executables
  -    autoPatchelf prebuilt/linux-x86_64
  +    if [ -d prebuild/linux-x86_64 ]; then
  +        autoPatchelf prebuilt/linux-x86_64
  +    fi
   
       # wrap
       for progname in ndk-build; do
  
positive.code:         addAutoPatchelfSearchPath $out/libexec/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/lib64
      fi
  
      find toolchains -type d -name bin -or -name lib64 | while read dir; do
          autoPatchelf "$dir"
      done
  
      # fix ineffective PROGDIR / MYNDKDIR determination
      for progname in ndk-build; do
  
negative.code:     ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ];
    autoPatchelfIgnoreMissingDeps = true;
    buildInputs = lib.optionals (os == "linux") [ pkgs.zlib ];
    patchInstructions = ''
      patchShebangs .
  
      # TODO: allow this stuff
  