1 { lib, stdenv, fetchFromGitHub, bzip2, openssl, zlib }:
3 stdenv.mkDerivation rec {
4 pname = "imgpatchtools";
7 src = fetchFromGitHub {
9 repo = "imgpatchtools";
11 sha256 = "sha256-7TOkqaXPui14VcSmMmYJ1Wg+s85wrgp+E0XcCB0Ml7M=";
14 buildInputs = [ bzip2 openssl zlib ];
16 installPhase = "install -Dt $out/bin bin/*";
19 description = "Tools to manipulate Android OTA archives";
21 This package is useful for Android development. In particular, it can be
22 used to extract ext4 /system image from Android distribution ZIP archives
23 such as those distributed by LineageOS and Replicant, via BlockImageUpdate
24 utility. It also includes other, related, but arguably more advanced tools
27 homepage = "https://github.com/erfanoabdi/imgpatchtools";
28 license = licenses.gpl3;
29 maintainers = with maintainers; [ yana ];
30 platforms = platforms.linux;