···11-{ stdenv, fetchurl, pkgconfig, usbmuxd, fuse, gnutls, libgcrypt,
22- libplist, libimobiledevice }:
11+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, usbmuxd, fuse, libimobiledevice }:
3243stdenv.mkDerivation rec {
55- name = "ifuse-1.1.3";
44+ pname = "ifuse";
55+ version = "1.1.3";
6677- nativeBuildInputs = [ pkgconfig fuse libplist usbmuxd gnutls libgcrypt libimobiledevice ];
77+ name = "${pname}-${version}";
8899- src = fetchurl {
1010- url = "${meta.homepage}/downloads/${name}.tar.bz2";
1111- sha256 = "1p9a4n36jb194cnp6v57cz2bggwbywaz8pbpb95ch83pzdkdx257";
99+ src = fetchFromGitHub {
1010+ owner = "libimobiledevice";
1111+ repo = pname;
1212+ rev = version;
1313+ sha256 = "0p01rds3vc5864v48swgqw5dv0h937nqnxggryixg9pkvzhc6cx5";
1214 };
13151414- meta = {
1515- homepage = http://www.libimobiledevice.org;
1616- license = stdenv.lib.licenses.lgpl21Plus;
1616+ nativeBuildInputs = [ autoreconfHook pkgconfig fuse usbmuxd libimobiledevice ];
1717+1818+ meta = with stdenv.lib; {
1919+ homepage = https://github.com/libimobiledevice/ifuse;
1720 description = "A fuse filesystem implementation to access the contents of iOS devices";
1821 longDescription = ''
1919- Mount directories of an iOS device locally using fuse. By default the media
2020- directory is mounted, options allow to also mount the sandbox container of an
2121- app, an app's documents folder or even the root filesystem on jailbroken
2222- devices.'';
2323- inherit (usbmuxd.meta) platforms maintainers;
2222+ Mount directories of an iOS device locally using fuse. By default the media
2323+ directory is mounted, options allow to also mount the sandbox container of an
2424+ app, an app's documents folder or even the root filesystem on jailbroken
2525+ devices.
2626+ '';
2727+ license = licenses.lgpl21Plus;
2828+ platforms = platforms.linux;
2929+ maintainers = with maintainers; [ ];
2430 };
2531}
+26-16
pkgs/tools/misc/usbmuxd/default.nix
···11-{ stdenv, fetchurl, libplist, libusb1, pkgconfig, libimobiledevice }:
11+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libusb1, libimobiledevice }:
2233stdenv.mkDerivation rec {
44- name = "usbmuxd-${version}";
55- version = "1.1.0";
44+ pname = "usbmuxd";
55+ version = "2018-07-22";
66+77+ name = "${pname}-${version}";
6877- src = fetchurl {
88- url = "https://www.libimobiledevice.org/downloads/${name}.tar.bz2";
99- sha256 = "0bdlc7a8plvglqqx39qqampqm6y0hcdws76l9dffwl22zss4i29y";
99+ src = fetchFromGitHub {
1010+ owner = "libimobiledevice";
1111+ repo = pname;
1212+ rev = "ee85938c21043ef5f7cd4dfbc7677f385814d4d8";
1313+ sha256 = "1qsnxvcagxa92rz0w78m0n2drgaghi0pqpbjdk2080sczzi1g76y";
1014 };
11151212- nativeBuildInputs = [ pkgconfig ];
1313- propagatedBuildInputs = [ libusb1 libplist libimobiledevice ];
1616+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
1717+ propagatedBuildInputs = [ libimobiledevice libusb1 ];
14181519 preConfigure = ''
1620 configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d"
1721 configureFlags="$configureFlags --with-systemdsystemunitdir=$out/lib/systemd/system"
1822 '';
19232020- meta = {
2121- homepage = http://marcansoft.com/blog/iphonelinux/usbmuxd/;
2222- description = "USB Multiplex Daemon (for talking to iPhone or iPod)";
2424+ meta = with stdenv.lib; {
2525+ homepage = https://github.com/libimobiledevice/usbmuxd;
2626+ description = "A socket daemon to multiplex connections from and to iOS devices";
2327 longDescription = ''
2424- usbmuxd: USB Multiplex Daemon. This bit of software is in charge of
2525- talking to your iPhone or iPod Touch over USB and coordinating access to
2626- its services by other applications.'';
2727- platforms = stdenv.lib.platforms.linux;
2828- maintainers = [ ];
2828+ usbmuxd stands for "USB multiplexing daemon". This daemon is in charge of
2929+ multiplexing connections over USB to an iOS device. To users, it means
3030+ you can sync your music, contacts, photos, etc. over USB. To developers, it
3131+ means you can connect to any listening localhost socket on the device. usbmuxd
3232+ is not used for tethering data transfer which uses a dedicated USB interface as
3333+ a virtual network device. Multiple connections to different TCP ports can happen
3434+ in parallel. The higher-level layers are handled by libimobiledevice.
3535+ '';
3636+ license = licenses.gpl2Plus;
3737+ platforms = platforms.linux;
3838+ maintainers = with maintainers; [ ];
2939 };
3040}