mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
apksigner: init
This commit is contained in:
parent
a378740356
commit
621eadcaa6
2 changed files with 19 additions and 0 deletions
15
pkgs/development/tools/apksigner/default.nix
Normal file
15
pkgs/development/tools/apksigner/default.nix
Normal 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"
|
||||
''
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue