uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/development/mobile/adb-sync/default.nix
Normal file
43
pkgs/development/mobile/adb-sync/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, 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 = 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 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue