android-backup-extractor: init at 20210909062443-4c55371 (#137516)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Pavol Rusnak 2021-09-12 16:02:56 +02:00 committed by GitHub
parent 11909f7c3c
commit a51701e3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ stdenv
, lib
, fetchurl
, makeWrapper
, jre
}:
stdenv.mkDerivation rec {
pname = "android-backup-extractor";
version = "20210909062443-4c55371";
src = fetchurl {
url = "https://github.com/nelenkov/android-backup-extractor/releases/download/${version}/abe.jar";
sha256 = "0ms241kb4h9y9apr637sb4kw5mml40c1ac0q4jcxhnwr3dr05w1q";
};
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
installPhase = ''
runHook preInstall
install -D $src $out/lib/android-backup-extractor/abe.jar
makeWrapper ${jre}/bin/java $out/bin/abe --add-flags "-cp $out/lib/android-backup-extractor/abe.jar org.nick.abe.Main"
runHook postInstall
'';
meta = with lib; {
description = "Utility to extract and repack Android backups created with adb backup";
homepage = "https://github.com/nelenkov/android-backup-extractor";
license = licenses.asl20;
maintainers = with maintainers; [ prusnak ];
};
}

View File

@ -1109,6 +1109,8 @@ with pkgs;
analog = callPackage ../tools/admin/analog {};
android-backup-extractor = callPackage ../tools/backup/android-backup-extractor {};
android-tools = lowPrio (callPackage ../tools/misc/android-tools {
stdenv = if stdenv.targetPlatform.isAarch64 then gcc10Stdenv else stdenv;
});