Merge pull request #231040 from Aleksanaa/adbfs-rootless

adbfs-rootless: 2016-10-02 -> unstable-2023-03-21

authored by

Weijia Wang and committed by
GitHub
88cb27db 9b5bd90d

+19 -20
+18 -17
pkgs/development/mobile/adbfs-rootless/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, fuse, adb }: 2 3 stdenv.mkDerivation rec { 4 pname = "adbfs-rootless"; 5 - version = "2016-10-02"; 6 7 src = fetchFromGitHub { 8 owner = "spion"; 9 - repo = "adbfs-rootless"; 10 - rev = "b58963430e40c9246710a16cec58e7ffc88baa48"; 11 - sha256 = "1kjibl86k6pf7vciwaaxwv5m4q28zdpd2g7yhp71av32jq6j3wm8"; 12 }; 13 14 - patches = [ 15 - (fetchpatch { 16 - # https://github.com/spion/adbfs-rootless/issues/14 17 - url = "https://github.com/kronenpj/adbfs-rootless/commit/35f87ce0a7aeddaaad118daed3022e01453b838d.patch"; 18 - sha256 = "1iigla74n3hphnyx9ffli9wqk7v71ylvsxama868czlg7851jqj9"; 19 - }) 20 - ]; 21 22 - nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ fuse ]; 24 25 postPatch = '' 26 # very ugly way of replacing the adb calls 27 - sed -e 's|"adb |"${adb}/bin/adb |g' \ 28 - -i adbfs.cpp 29 ''; 30 31 installPhase = '' 32 install -D adbfs $out/bin/adbfs 33 ''; 34 35 meta = with lib; { 36 description = "Mount Android phones on Linux with adb, no root required"; 37 inherit (src.meta) homepage; 38 license = licenses.bsd3; 39 - maintainers = with maintainers; [ Profpatsch ]; 40 - platforms = platforms.linux; 41 }; 42 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , pkg-config 5 + , fuse 6 + , android-tools 7 + }: 8 9 stdenv.mkDerivation rec { 10 pname = "adbfs-rootless"; 11 + version = "unstable-2023-03-21"; 12 13 src = fetchFromGitHub { 14 owner = "spion"; 15 + repo = pname; 16 + rev = "fd56381af4dc9ae2f09b904c295686871a46ed0f"; 17 + sha256 = "atiVjRfqvhTlm8Q+3iTNNPQiNkLIaHDLg5HZDJvpl2Q="; 18 }; 19 20 + nativeBuildInputs = [ pkg-config ]; 21 22 buildInputs = [ fuse ]; 23 24 postPatch = '' 25 # very ugly way of replacing the adb calls 26 + substituteInPlace adbfs.cpp \ 27 + --replace '"adb ' '"${android-tools}/bin/adb ' 28 ''; 29 30 installPhase = '' 31 + runHook preInstall 32 install -D adbfs $out/bin/adbfs 33 + runHook postInstall 34 ''; 35 36 meta = with lib; { 37 description = "Mount Android phones on Linux with adb, no root required"; 38 inherit (src.meta) homepage; 39 license = licenses.bsd3; 40 + maintainers = with maintainers; [ Profpatsch aleksana ]; 41 + platforms = platforms.unix; 42 }; 43 }
+1 -3
pkgs/top-level/all-packages.nix
··· 3679 3680 abootimg = callPackage ../development/mobile/abootimg { }; 3681 3682 - adbfs-rootless = callPackage ../development/mobile/adbfs-rootless { 3683 - adb = androidenv.androidPkgs_9_0.platform-tools; 3684 - }; 3685 3686 adb-sync = callPackage ../development/mobile/adb-sync { 3687 inherit (androidenv.androidPkgs_9_0) platform-tools;
··· 3679 3680 abootimg = callPackage ../development/mobile/abootimg { }; 3681 3682 + adbfs-rootless = callPackage ../development/mobile/adbfs-rootless { }; 3683 3684 adb-sync = callPackage ../development/mobile/adb-sync { 3685 inherit (androidenv.androidPkgs_9_0) platform-tools;