python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / bundletool / default.nix
blobde4deed0606abf2b55af9f43ec2436e489529cf3
1 { lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "bundletool";
5   version = "1.13.0";
7   src = fetchurl {
8     url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
9     sha256 = "sha256-9Fks0DrUgk6N218pPvgAHrU0P9kjCOJhQx8ILzloC+I=";
10   };
12   dontUnpack = true;
14   nativeBuildInputs = [ makeBinaryWrapper ];
16   installPhase = ''
17     runHook preInstall
18     makeWrapper ${jre_headless}/bin/java $out/bin/bundletool --add-flags "-jar $src"
19     runHook postInstall
20   '';
22   meta = with lib; {
23     description = "Command-line tool to manipulate Android App Bundles";
24     homepage = "https://developer.android.com/studio/command-line/bundletool";
25     changelog = "https://github.com/google/bundletool/releases/tag/${version}";
26     maintainers = with maintainers; [ marsam ];
27     platforms = jre_headless.meta.platforms;
28     license = licenses.asl20;
29   };