9 stdenv.mkDerivation rec {
15 "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_${version}.jar"
16 "https://github.com/iBotPeaches/Apktool/releases/download/v${version}/apktool_${version}.jar"
18 hash = "sha256-eVbrBBlDAM4NCoStGHce68lLifuNHdzOjqTAVoGGRvQ=";
23 nativeBuildInputs = [ makeWrapper ];
29 install -D ${src} "$out/libexec/apktool/apktool.jar"
31 makeWrapper "${jdk_headless}/bin/java" "$out/bin/apktool" \
32 --add-flags "-jar $out/libexec/apktool/apktool.jar" \
33 --prefix PATH : ${lib.getBin aapt}
37 description = "A tool for reverse engineering Android apk files";
38 mainProgram = "apktool";
39 homepage = "https://ibotpeaches.github.io/Apktool/";
40 changelog = "https://github.com/iBotPeaches/Apktool/releases/tag/v${version}";
41 sourceProvenance = with sourceTypes; [ binaryBytecode ];
42 license = licenses.asl20;
43 maintainers = with maintainers; [ offline ];
44 platforms = with platforms; unix;