nixpkgs/pkgs/development/tools/bundletool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
954 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:
2022-07-26 04:20:00 +00:00
stdenvNoCC.mkDerivation rec {
2022-07-26 04:20:00 +00:00
pname = "bundletool";
2022-12-16 12:12:36 +00:00
version = "1.13.2";
2022-07-26 04:20:00 +00:00
src = fetchurl {
url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
2022-12-16 12:12:36 +00:00
sha256 = "sha256-sbX7IYFcU9gwKzHKC8xtmZKVE2XImeNT4RYOx+cSI2Y=";
2022-07-26 04:20:00 +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;
};
}