mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
apktool: don't hardcode (wrong) build-tools version
This commit is contained in:
parent
f49c18e893
commit
252f4c6ed3
@ -18,13 +18,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
install -D ${src} "$out/libexec/apktool/apktool.jar"
|
||||
mkdir -p "$out/bin"
|
||||
makeWrapper "${jre}/bin/java" "$out/bin/apktool" \
|
||||
--add-flags "-jar $out/libexec/apktool/apktool.jar" \
|
||||
--prefix PATH : "${builtins.head build-tools}/libexec/android-sdk/build-tools/28.0.3"
|
||||
'';
|
||||
installPhase =
|
||||
let
|
||||
tools = builtins.head build-tools;
|
||||
in ''
|
||||
install -D ${src} "$out/libexec/apktool/apktool.jar"
|
||||
mkdir -p "$out/bin"
|
||||
makeWrapper "${jre}/bin/java" "$out/bin/apktool" \
|
||||
--add-flags "-jar $out/libexec/apktool/apktool.jar" \
|
||||
--prefix PATH : "${tools}/libexec/android-sdk/build-tools/${tools.version}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool for reverse engineering Android apk files";
|
||||
|
Loading…
Reference in New Issue
Block a user