mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ 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";
|
|
mainProgram = "abe";
|
|
homepage = "https://github.com/nelenkov/android-backup-extractor";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|