Unverified Commit 40f838f6 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

bundletool: moved to by-name and modernized derivation (#346159)

parents cf7f1088 1eec2d3b
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
{ lib, stdenvNoCC, fetchurl, makeBinaryWrapper, jre_headless }:
{
  lib,
  stdenvNoCC,
  fetchurl,
  makeBinaryWrapper,
  jre_headless,
}:

stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "bundletool";
  version = "1.17.1";

  src = fetchurl {
    url = "https://github.com/google/bundletool/releases/download/${version}/bundletool-all-${version}.jar";
    url = "https://github.com/google/bundletool/releases/download/${finalAttrs.version}/bundletool-all-${finalAttrs.version}.jar";
    sha256 = "sha256-RYgerRM4iHLYLEJVsZVIi3/DPyysWpqXewr8XpI2dZI=";
  };

@@ -19,14 +25,14 @@ stdenvNoCC.mkDerivation rec {
    runHook postInstall
  '';

  meta = with lib; {
  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/${version}";
    sourceProvenance = with sourceTypes; [ binaryBytecode ];
    maintainers = [ ];
    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 = licenses.asl20;
    license = lib.licenses.asl20;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -4194,8 +4194,6 @@ with pkgs;
  buildtorrent = callPackage ../tools/misc/buildtorrent { };
  bundletool = callPackage ../development/tools/bundletool { };
  bwm_ng = callPackage ../tools/networking/bwm-ng { };
  bwbasic = callPackage ../development/interpreters/bwbasic { };