Merge pull request #183043 from marsam/init-bundletool

bundletool: init at 1.11.0
This commit is contained in:
Mario Rodas 2022-07-27 22:01:56 -05:00 committed by GitHub
commit 98a98b2913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, stdenv, fetchurl, makeBinaryWrapper, jre_headless }:
stdenv.mkDerivation rec {
pname = "bundletool";
version = "1.11.0";
src = fetchurl {
url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
sha256 = "sha256-xCw2Wuc2ndTcLrwR7uv5FFnwImxTcG/STeTQBiaKuIw=";
};
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;
};
}

View file

@ -3044,6 +3044,8 @@ with pkgs;
buildtorrent = callPackage ../tools/misc/buildtorrent { };
bundletool = callPackage ../development/tools/bundletool { };
bustle = haskellPackages.bustle;
bwm_ng = callPackage ../tools/networking/bwm-ng { };