apksigner: 33.0.1 -> 34.0.5-unstable-2024-03-06
This commit is contained in:
parent
9d50a5b0d8
commit
4edce53447
|
@ -1,24 +1,22 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchgit
|
, fetchgit
|
||||||
, openjdk17_headless
|
, jdk_headless
|
||||||
, gradle_7
|
, gradle
|
||||||
, perl
|
, perl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
gradle = gradle_7;
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "apksigner";
|
pname = "apksigner";
|
||||||
version = "33.0.1";
|
version = "34.0.5-unstable-2024-03-06";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
# use pname here because the final jar uses this as the filename
|
# use pname here because the final jar uses this as the filename
|
||||||
name = pname;
|
name = pname;
|
||||||
url = "https://android.googlesource.com/platform/tools/apksig";
|
url = "https://android.googlesource.com/platform/tools/apksig";
|
||||||
rev = "platform-tools-${version}";
|
rev = "ac5cbb07d87cc342fcf07715857a812305d69888";
|
||||||
hash = "sha256-CKvwB9Bb12QvkL/HBOwT6DhA1PI45+QnTNfwnvReGUQ=";
|
hash = "sha256-sLAs7XEkhNkQjB/nhBODxI3QzxFvLWM1SBKDuXp6gvw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -36,6 +34,7 @@ stdenv.mkDerivation rec {
|
||||||
include 'com/android/apksigner/*.txt'
|
include 'com/android/apksigner/*.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tasks.named("processTestResources") { dependsOn("extractTestProto") }
|
||||||
EOF
|
EOF
|
||||||
sed -i -e '/conscrypt/s/testImplementation/implementation/' build.gradle
|
sed -i -e '/conscrypt/s/testImplementation/implementation/' build.gradle
|
||||||
'';
|
'';
|
||||||
|
@ -80,10 +79,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm444 build/libs/apksigner.jar -t $out/lib
|
install -Dm444 build/libs/apksigner.jar -t $out/lib
|
||||||
makeWrapper "${openjdk17_headless}/bin/java" "$out/bin/apksigner" \
|
makeWrapper "${jdk_headless}/bin/java" "$out/bin/apksigner" \
|
||||||
--add-flags "-jar $out/lib/apksigner.jar"
|
--add-flags "-jar $out/lib/apksigner.jar"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command line tool to sign and verify Android APKs";
|
description = "Command line tool to sign and verify Android APKs";
|
||||||
mainProgram = "apksigner";
|
mainProgram = "apksigner";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user