at 18.03-beta 32 lines 949 B view raw
1{ stdenv, fetchgit, python, androidsdk, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 name = "adb-sync-${version}"; 5 version = "2016-08-31"; 6 7 src = fetchgit { 8 url = "https://github.com/google/adb-sync"; 9 rev = "7fc48ad1e15129ebe34e9f89b04bfbb68ced144d"; 10 sha256 = "1y016bjky5sn58v91jyqfz7vw8qfqnfhb9s9jd32k8y29hy5vy4d"; 11 }; 12 13 buildInputs = [ python androidsdk makeWrapper ]; 14 15 phases = "installPhase"; 16 17 installPhase = '' 18 mkdir -p $out/bin 19 cp $src/adb-channel $src/adb-sync $out/bin/ 20 patchShebangs $out/bin 21 wrapProgram $out/bin/adb-sync --suffix PATH : ${androidsdk}/bin 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "A tool to synchronise files between a PC and an Android devices using ADB (Android Debug Bridge)"; 26 homepage = https://github.com/google/adb-sync; 27 license = licenses.asl20; 28 platforms = platforms.unix; 29 hydraPlatforms = []; 30 maintainers = with maintainers; [ scolobb ]; 31 }; 32}