Skip to content

Commit

Permalink
bundletool: moved to by-name and modernized derivation (#346159)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Oct 5, 2024
2 parents cf7f108 + 1eec2d3 commit 40f838f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{ 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=";
};

Expand All @@ -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;
};
}
})
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 40f838f

Please sign in to comment.