anchor.diff:          ln -sf $out/platform-tools/$i $out/bin/$i
       done
     '';
  -  
  +
     buildInputs = [ unzip ];
   }
  
positive.code: {stdenv, zlib, fetchurl, unzip}:
  
  stdenv.mkDerivation rec {
    version = "26.0.0";
    name = "android-platform-tools-r${version}";
    src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
      then fetchurl {
        url = "https://dl.google.com/android/repository/platform-tools_r${version}-linux.zip";
        sha256 = "02z5fxxdwd6359wmqdag9vvszdq49sm78cvfskqap18xa83q484h";
      }
      else if stdenv.system == "x86_64-darwin" then fetchurl {
        url = "https://dl.google.com/android/repository/platform-tools_r${version}-darwin.zip";
        sha256 = "13mcyi9l0mmmjr056z1i3rhpb4641iv0a5ky7ij0v8hwsb5r5lwq";
      }
      else throw "System ${stdenv.system} not supported!";
  
  
negative.code:     cd $out
      unzip $src
      cd platform-tools
  
      ${stdenv.lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
        ''
          for i in adb dmtracedump fastboot hprof-conv sqlite3
  