10 python3.pkgs.buildPythonApplication rec {
11 pname = "apksigcopier";
14 src = fetchFromGitHub {
16 repo = "apksigcopier";
17 rev = "refs/tags/v${version}";
18 sha256 = "sha256-VuwSaoTv5qq1jKwgBTKd1y9RKUzz89n86Z4UBv7Q51o=";
26 propagatedBuildInputs = with python3.pkgs; [
34 "${lib.makeBinPath [ apksigner ]}"
38 substituteInPlace Makefile \
39 --replace /bin/bash ${bash}/bin/bash
47 installManPage ${pname}.1
50 doInstallCheck = true;
52 installCheckPhase = ''
53 runHook preInstallCheck
54 $out/bin/apksigcopier --version | grep "${version}"
55 runHook postInstallCheck
59 description = "Copy/extract/patch android apk signatures & compare APKs";
60 mainProgram = "apksigcopier";
62 apksigcopier is a tool for copying android APK signatures from a signed
63 APK to an unsigned one (in order to verify reproducible builds).
64 It can also be used to compare two APKs with different signatures.
65 Its command-line tool offers four operations:
67 * copy signatures directly from a signed to an unsigned APK
68 * extract signatures from a signed APK to a directory
69 * patch previously extracted signatures onto an unsigned APK
70 * compare two APKs with different signatures (requires apksigner)
72 homepage = "https://github.com/obfusk/apksigcopier";
73 license = with licenses; [ gpl3Plus ];
74 maintainers = with maintainers; [ obfusk ];