a3bb8d7922
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
15 lines
340 B
Nix
15 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"
|
|
''
|