2022-09-09 14:08:57 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "bundletool";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.15.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-rsncZPslrMZOtmi0XA7GoOu6MNtKLghLYbevCnOAoOE=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
makeWrapper ${jre_headless}/bin/java $out/bin/bundletool --add-flags "-jar $src"
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line tool to manipulate Android App Bundles";
|
|
|
|
homepage = "https://developer.android.com/studio/command-line/bundletool";
|
|
|
|
changelog = "https://github.com/google/bundletool/releases/tag/${version}";
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
platforms = jre_headless.meta.platforms;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|