Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, bzip2, openssl, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "imgpatchtools"; 5 version = "0.3"; 6 7 src = fetchFromGitHub { 8 owner = "erfanoabdi"; 9 repo = "imgpatchtools"; 10 rev = version; 11 sha256 = "sha256-7TOkqaXPui14VcSmMmYJ1Wg+s85wrgp+E0XcCB0Ml7M="; 12 }; 13 14 buildInputs = [ bzip2 openssl zlib ]; 15 16 installPhase = "install -Dt $out/bin bin/*"; 17 18 meta = with lib; { 19 description = "Tools to manipulate Android OTA archives"; 20 longDescription = '' 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 25 for OTA manipulation. 26 ''; 27 homepage = "https://github.com/erfanoabdi/imgpatchtools"; 28 license = licenses.gpl3; 29 maintainers = with maintainers; [ yana ]; 30 platforms = platforms.linux; 31 }; 32}