22 pythonEnv = python3.withPackages (ps: [ ps.protobuf ]);
25 stdenv.mkDerivation rec {
26 pname = "android-tools";
30 url = "https://github.com/nmeum/android-tools/releases/download/${version}/android-tools-${version}.tar.xz";
31 hash = "sha256-ZUAwx/ltJdciTNaGH6wUoEPPHTmA9AKIzfviGflP+vk=";
51 propagatedBuildInputs = [ pythonEnv ];
54 export GOCACHE=$TMPDIR/go-cache
58 description = "Android SDK platform tools";
60 Android SDK Platform-Tools is a component for the Android SDK. It
61 includes tools that interface with the Android platform, such as adb and
62 fastboot. These tools are required for Android app development. They're
63 also needed if you want to unlock your device bootloader and flash it
64 with a new system image.
65 Currently the following tools are supported:
68 - mke2fs.android (required by fastboot)
69 - simg2img, img2simg, append2simg
70 - lpdump, lpmake, lpadd, lpflash, lpunpack
71 - mkbootimg, unpack_bootimg, repack_bootimg, avbtool
74 # https://developer.android.com/studio/command-line#tools-platform
75 # https://developer.android.com/studio/releases/platform-tools
76 homepage = "https://github.com/nmeum/android-tools";
77 license = with licenses; [
81 platforms = platforms.unix;
82 maintainers = with maintainers; [ primeos ];