2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1, libimobiledevice }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "usbmuxd";
|
2020-12-09 12:39:15 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
2020-12-09 12:39:15 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0a2xgrb4b3ndam448z74wh1267nmrz1wcbpx4xz86pwbdc93snab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ libimobiledevice libusb1 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d"
|
|
|
|
configureFlags="$configureFlags --with-systemdsystemunitdir=$out/lib/systemd/system"
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
description = "A socket daemon to multiplex connections from and to iOS devices";
|
|
|
|
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;
|
2020-12-09 12:39:15 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|