forked from mirrors/nixpkgs
4f67c0cc6c
Simple tool to synchronize a directory-tree between a local machine and
an Android device using `adb` and `rsync`.
Since this repo doesn't have any releases atm, I added the `-unstable`
suffix to `pname`. Since 2016-08-31 the following things changed:
7fc48ad1e1...fb7c549753
Also applied the following changes to the derivation:
* Removed the `phases` hack to enable important things like `fixupPhase`
again (amongst other things this is needed for shebang-patching and
reference-checks).
* Fixed the wrapper to make sure that every binary needed by those
scripts is available.
* Added myself as additional maintainer.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, python3, platform-tools, makeWrapper
|
|
, socat, go-mtpfs, adbfs-rootless
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "adb-sync-unstable";
|
|
version = "2019-01-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "adb-sync";
|
|
rev = "fb7c549753de7a5579ed3400dd9f8ac71f7bf1b1";
|
|
sha256 = "1kfpdqs8lmnh144jcm1qmfnmigzrbrz5lvwvqqb7021b2jlf69cl";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ python3 ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = let
|
|
dependencies = stdenv.lib.makeBinPath [ platform-tools socat go-mtpfs adbfs-rootless ];
|
|
in ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp adb-{sync,channel} $out/bin
|
|
|
|
wrapProgram $out/bin/adb-sync --suffix PATH : "${dependencies}"
|
|
wrapProgram $out/bin/adb-channel --suffix PATH : "${dependencies}"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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.unix;
|
|
hydraPlatforms = [];
|
|
maintainers = with maintainers; [ scolobb ma27 ];
|
|
};
|
|
}
|