diff --git a/pkgs/development/mobile/adb-sync/default.nix b/pkgs/development/mobile/adb-sync/default.nix new file mode 100644 index 000000000000..f4adad3ba2b5 --- /dev/null +++ b/pkgs/development/mobile/adb-sync/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchgit, python, androidsdk, makeWrapper }: + +stdenv.mkDerivation rec { + name = "adb-sync-${version}"; + version = "2016-08-31"; + + src = fetchgit { + url = "https://github.com/google/adb-sync"; + rev = "7fc48ad1e15129ebe34e9f89b04bfbb68ced144d"; + sha256 = "1y016bjky5sn58v91jyqfz7vw8qfqnfhb9s9jd32k8y29hy5vy4d"; + }; + + preferLocalBuild = true; + + buildInputs = [ python androidsdk makeWrapper ]; + + 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)"; + homepage = "https://github.com/google/adb-sync"; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ scolobb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6826d4bc5d01..56f923ea6531 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -473,6 +473,8 @@ in pkgs_i686 = pkgsi686Linux; }; + adb-sync = callPackage ../development/mobile/adb-sync { }; + apg = callPackage ../tools/security/apg { }; autorevision = callPackage ../tools/misc/autorevision { };