2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1, libimobiledevice }:
|
2010-09-26 19:39:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-13 04:48:58 +00:00
|
|
|
pname = "usbmuxd";
|
2021-06-02 17:19:48 +00:00
|
|
|
version = "unstable-2021-05-08";
|
2010-09-26 19:39:35 +00:00
|
|
|
|
2018-08-13 04:48:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
2021-06-02 17:19:48 +00:00
|
|
|
rev = "5e484e18f1383b5a0bd6c353ab1d668b03e4ffab";
|
|
|
|
sha256 = "sha256-hhbfRmLEhVVuJNnw65PakPnvjSCrN3oSMK6D7Zwnw60=";
|
2010-09-26 19:39:35 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-08-13 04:48:58 +00:00
|
|
|
propagatedBuildInputs = [ libimobiledevice libusb1 ];
|
2010-09-26 19:39:35 +00:00
|
|
|
|
2015-04-29 22:46:14 +00:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d"
|
|
|
|
configureFlags="$configureFlags --with-systemdsystemunitdir=$out/lib/systemd/system"
|
|
|
|
'';
|
2012-01-05 23:15:33 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/libimobiledevice/usbmuxd";
|
2018-08-13 04:48:58 +00:00
|
|
|
description = "A socket daemon to multiplex connections from and to iOS devices";
|
2010-09-26 19:39:35 +00:00
|
|
|
longDescription = ''
|
2018-08-13 04:48:58 +00:00
|
|
|
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-05 18:09:21 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-04-16 11:49:02 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2010-09-26 19:39:35 +00:00
|
|
|
};
|
|
|
|
}
|