anchor.diff:        - fastboot
         - mke2fs.android (required by fastboot)
         - simg2img, img2simg, append2simg
  +      - lpdump, lpmake, lpadd, lpflash, lpunpack
  +      - mkbootimg, unpack_bootimg, repack_bootimg
       '';
       # https://developer.android.com/studio/command-line#tools-platform
       # https://developer.android.com/studio/releases/platform-tools
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "android-tools";
    version = "31.0.3";
  
    src = fetchurl {
      url = "https://github.com/nmeum/android-tools/releases/download/${version}/android-tools-${version}.tar.xz";
      sha256 = "0adhws565ny90vzh5jpkbcai8sfs3b9acs0bgl6bm9z1nr2xklnp";
    };
  
    patches = [
  
negative.code: 
    postInstall = ''
      install -Dm755 ../vendor/avb/avbtool.py -t $out/bin
    '';
  
    meta = with lib; {
  