apksigner: init

This commit is contained in:
Felix C. Stegerman 2021-07-24 22:23:59 +02:00
parent a378740356
commit 621eadcaa6
No known key found for this signature in database
GPG key ID: B218FF2C27FC6CC6
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,15 @@
{ runCommand
, makeWrapper
, jre
, build-tools
}:
let
tools = builtins.head build-tools;
in
runCommand "apksigner" {
nativeBuildInputs = [ makeWrapper ];
} ''
mkdir -p $out/bin
makeWrapper "${jre}/bin/java" "$out/bin/apksigner" \
--add-flags "-jar ${tools}/libexec/android-sdk/build-tools/${tools.version}/lib/apksigner.jar"
''

View file

@ -1105,6 +1105,10 @@ in
apksigcopier = callPackage ../development/tools/apksigcopier { };
apksigner = callPackage ../development/tools/apksigner {
inherit (androidenv.androidPkgs_9_0) build-tools;
};
apktool = callPackage ../development/tools/apktool {
inherit (androidenv.androidPkgs_9_0) build-tools;
};