Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
makeBinaryWrapper,
|
|
jre_headless,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "bundletool";
|
|
version = "1.18.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/google/bundletool/releases/download/${finalAttrs.version}/bundletool-all-${finalAttrs.version}.jar";
|
|
sha256 = "sha256-N4tUNM0TeL72srxSe4x/D/JYSyc4MDNbzlTW0IE8hYQ=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
makeWrapper ${jre_headless}/bin/java $out/bin/bundletool --add-flags "-jar $src"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command-line tool to manipulate Android App Bundles";
|
|
mainProgram = "bundletool";
|
|
homepage = "https://developer.android.com/studio/command-line/bundletool";
|
|
changelog = "https://github.com/google/bundletool/releases/tag/${finalAttrs.version}";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
maintainers = with lib.maintainers; [ momeemt ];
|
|
platforms = jre_headless.meta.platforms;
|
|
license = lib.licenses.asl20;
|
|
};
|
|
})
|