anchor.diff:    '';
   
     postInstall = ''
  -    install -Dm755 ../vendor/avb/aftltool.py -t $out/bin
       install -Dm755 ../vendor/avb/avbtool.py -t $out/bin
       install -Dm755 ../vendor/mkbootimg/mkbootimg.py $out/bin/mkbootimg
     '';
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "android-tools";
    version = "31.0.2";
  
    src = fetchurl {
      url = "https://github.com/nmeum/android-tools/releases/download/${version}/android-tools-${version}.tar.xz";
      sha256 = "sha256-YbO/bCQMsLTQzP72lsVZhuBmV4Q2J9+VD9z2iBrw+NQ=";
    };
  
    patches = [
  
negative.code:     })
    ];
  
    nativeBuildInputs = [ cmake perl go ];
    buildInputs = [ protobuf zlib gtest brotli lz4 zstd libusb1 pcre2 fmt_7 ];
    propagatedBuildInputs = [ pythonEnv ];
  