From 61193327f1ad3716d9974cb1f611a1aa08baa2f5 Mon Sep 17 00:00:00 2001 From: x807x Date: Tue, 4 Mar 2025 15:40:37 +0800 Subject: [PATCH 1/2] maintainers: add x807x --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 652c4355be8d..4677d4cde5c6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -26312,6 +26312,13 @@ github = "x3rAx"; githubId = 2268851; }; + x807x = { + name = "x807x"; + email = "s10855168@gmail.com"; + matrix = "@x807x:matrix.org"; + github = "x807x"; + githubId = 86676478; + }; xanderio = { name = "Alexander Sieg"; email = "alex@xanderio.de"; From 8b1f7e96adca22356ab2578a6adb4327552a33b9 Mon Sep 17 00:00:00 2001 From: x807x Date: Mon, 3 Mar 2025 13:48:29 +0800 Subject: [PATCH 2/2] usbfluxd: init at 1.0 --- pkgs/by-name/us/usbfluxd/package.nix | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/us/usbfluxd/package.nix diff --git a/pkgs/by-name/us/usbfluxd/package.nix b/pkgs/by-name/us/usbfluxd/package.nix new file mode 100644 index 000000000000..db2d9490f68c --- /dev/null +++ b/pkgs/by-name/us/usbfluxd/package.nix @@ -0,0 +1,52 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + libimobiledevice, + libusb1, + libusbmuxd, + usbmuxd, + libplist, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "usbfluxd"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "corellium"; + repo = "usbfluxd"; + tag = "v${finalAttrs.version}"; + hash = "sha256-tfAy3e2UssPlRB/8uReLS5f8N/xUUzbjs8sKNlr40T0="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libimobiledevice + libusb1 + libusbmuxd + usbmuxd + libplist + ]; + + postPatch = '' + substituteInPlace configure.ac \ + --replace-fail 'with_static_libplist=yes' 'with_static_libplist=no' + substituteInPlace usbfluxd/utils.h \ + --replace-fail PLIST_FORMAT_BINARY //PLIST_FORMAT_BINARY \ + --replace-fail PLIST_FORMAT_XML, NOT_PLIST_FORMAT_XML + ''; + + meta = { + homepage = "https://github.com/corellium/usbfluxd"; + description = "Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally"; + license = lib.licenses.gpl2Plus; + mainProgram = "usbfluxctl"; + maintainers = with lib.maintainers; [ x807x ]; + }; +})