mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
16 lines
340 B
Nix
16 lines
340 B
Nix
{ 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"
|
|
''
|