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