2018-08-03 19:48:42 +02:00
|
|
|
{ stdenv, fetchgit, python3, androidsdk, makeWrapper }:
|
2016-08-07 13:25:41 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "adb-sync-${version}";
|
|
|
|
version = "2016-08-31";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/google/adb-sync";
|
|
|
|
rev = "7fc48ad1e15129ebe34e9f89b04bfbb68ced144d";
|
|
|
|
sha256 = "1y016bjky5sn58v91jyqfz7vw8qfqnfhb9s9jd32k8y29hy5vy4d";
|
|
|
|
};
|
|
|
|
|
2018-08-03 19:48:42 +02:00
|
|
|
buildInputs = [ python3 androidsdk makeWrapper ];
|
2016-08-07 13:25:41 +02:00
|
|
|
|
|
|
|
phases = "installPhase";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src/adb-channel $src/adb-sync $out/bin/
|
|
|
|
patchShebangs $out/bin
|
|
|
|
wrapProgram $out/bin/adb-sync --suffix PATH : ${androidsdk}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to synchronise files between a PC and an Android devices using ADB (Android Debug Bridge)";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/google/adb-sync;
|
2016-08-07 13:25:41 +02:00
|
|
|
license = licenses.asl20;
|
2016-09-06 23:43:10 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
hydraPlatforms = [];
|
2016-08-07 13:25:41 +02:00
|
|
|
maintainers = with maintainers; [ scolobb ];
|
|
|
|
};
|
|
|
|
}
|