2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, libimobiledevice
|
|
|
|
, libusb1
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "usbmuxd";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.1+date=2023-05-05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "01c94c77f59404924f1c46d99c4e5e0c7817281b";
|
|
|
|
hash = "sha256-WqbobkzlJ9g5fb9S2QPi3qdpCLx3pxtNlT7qDI63Zp4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
libimobiledevice
|
|
|
|
libusb1
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preAutoreconf = ''
|
|
|
|
export RELEASE_VERSION=${version}
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-udevrulesdir=${placeholder "out"}/lib/udev/rules.d"
|
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/libimobiledevice/usbmuxd";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Socket daemon to multiplex connections from and to iOS devices";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
usbmuxd stands for "USB multiplexing daemon". This daemon is in charge of
|
|
|
|
multiplexing connections over USB to an iOS device. To users, it means
|
|
|
|
you can sync your music, contacts, photos, etc. over USB. To developers, it
|
|
|
|
means you can connect to any listening localhost socket on the device. usbmuxd
|
|
|
|
is not used for tethering data transfer which uses a dedicated USB interface as
|
|
|
|
a virtual network device. Multiple connections to different TCP ports can happen
|
|
|
|
in parallel. The higher-level layers are handled by libimobiledevice.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
2022-06-16 17:23:12 +00:00
|
|
|
platforms = platforms.unix;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "usbmuxd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|