tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
apksigner: 33.0.1 -> 34.0.5-unstable-2024-03-06
linsui
2 years ago
4edce534
9d50a5b0
+10
-9
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
apksigner
default.nix
+10
-9
pkgs/development/tools/apksigner/default.nix
···
1
{ lib
2
, stdenv
3
, fetchgit
4
-
, openjdk17_headless
5
-
, gradle_7
6
, perl
7
, makeWrapper
8
}:
9
-
let
10
-
gradle = gradle_7;
11
-
in
12
stdenv.mkDerivation rec {
13
pname = "apksigner";
14
-
version = "33.0.1";
15
16
src = fetchgit {
17
# use pname here because the final jar uses this as the filename
18
name = pname;
19
url = "https://android.googlesource.com/platform/tools/apksig";
20
-
rev = "platform-tools-${version}";
21
-
hash = "sha256-CKvwB9Bb12QvkL/HBOwT6DhA1PI45+QnTNfwnvReGUQ=";
22
};
23
24
postPatch = ''
···
36
include 'com/android/apksigner/*.txt'
37
}
38
}
0
39
EOF
40
sed -i -e '/conscrypt/s/testImplementation/implementation/' build.gradle
41
'';
···
80
81
installPhase = ''
82
install -Dm444 build/libs/apksigner.jar -t $out/lib
83
-
makeWrapper "${openjdk17_headless}/bin/java" "$out/bin/apksigner" \
84
--add-flags "-jar $out/lib/apksigner.jar"
85
'';
0
0
86
87
meta = with lib; {
88
description = "Command line tool to sign and verify Android APKs";
···
1
{ lib
2
, stdenv
3
, fetchgit
4
+
, jdk_headless
5
+
, gradle
6
, perl
7
, makeWrapper
8
}:
9
+
0
0
10
stdenv.mkDerivation rec {
11
pname = "apksigner";
12
+
version = "34.0.5-unstable-2024-03-06";
13
14
src = fetchgit {
15
# use pname here because the final jar uses this as the filename
16
name = pname;
17
url = "https://android.googlesource.com/platform/tools/apksig";
18
+
rev = "ac5cbb07d87cc342fcf07715857a812305d69888";
19
+
hash = "sha256-sLAs7XEkhNkQjB/nhBODxI3QzxFvLWM1SBKDuXp6gvw=";
20
};
21
22
postPatch = ''
···
34
include 'com/android/apksigner/*.txt'
35
}
36
}
37
+
tasks.named("processTestResources") { dependsOn("extractTestProto") }
38
EOF
39
sed -i -e '/conscrypt/s/testImplementation/implementation/' build.gradle
40
'';
···
79
80
installPhase = ''
81
install -Dm444 build/libs/apksigner.jar -t $out/lib
82
+
makeWrapper "${jdk_headless}/bin/java" "$out/bin/apksigner" \
83
--add-flags "-jar $out/lib/apksigner.jar"
84
'';
85
+
86
+
__darwinAllowLocalNetworking = true;
87
88
meta = with lib; {
89
description = "Command line tool to sign and verify Android APKs";