mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
31 lines
954 B
Nix
31 lines
954 B
Nix
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "bundletool";
|
|
version = "1.13.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
|
|
sha256 = "sha256-owXj7FSR98IPuaWkUGpv4e6c4c6XIYFsxZZH0OWYcu8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|