nixpkgs/pkgs/development/tools/apksigner/default.nix
Felix C. Stegerman 621eadcaa6
apksigner: init
2021-07-24 22:23:59 +02:00

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"
''