usbfluxd: init at 1.0

x807x 8b1f7e96 61193327

+52
+52
pkgs/by-name/us/usbfluxd/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + autoreconfHook, 6 + pkg-config, 7 + libimobiledevice, 8 + libusb1, 9 + libusbmuxd, 10 + usbmuxd, 11 + libplist, 12 + }: 13 + stdenv.mkDerivation (finalAttrs: { 14 + pname = "usbfluxd"; 15 + version = "1.0"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "corellium"; 19 + repo = "usbfluxd"; 20 + tag = "v${finalAttrs.version}"; 21 + hash = "sha256-tfAy3e2UssPlRB/8uReLS5f8N/xUUzbjs8sKNlr40T0="; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + autoreconfHook 26 + pkg-config 27 + ]; 28 + 29 + buildInputs = [ 30 + libimobiledevice 31 + libusb1 32 + libusbmuxd 33 + usbmuxd 34 + libplist 35 + ]; 36 + 37 + postPatch = '' 38 + substituteInPlace configure.ac \ 39 + --replace-fail 'with_static_libplist=yes' 'with_static_libplist=no' 40 + substituteInPlace usbfluxd/utils.h \ 41 + --replace-fail PLIST_FORMAT_BINARY //PLIST_FORMAT_BINARY \ 42 + --replace-fail PLIST_FORMAT_XML, NOT_PLIST_FORMAT_XML 43 + ''; 44 + 45 + meta = { 46 + homepage = "https://github.com/corellium/usbfluxd"; 47 + description = "Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally"; 48 + license = lib.licenses.gpl2Plus; 49 + mainProgram = "usbfluxctl"; 50 + maintainers = with lib.maintainers; [ x807x ]; 51 + }; 52 + })