1{ stdenv, fetchurl, fetchpatch, python2, pkgconfig, usbmuxd, glib, libgcrypt,
2 libtasn1, libplist, readline, libusbmuxd, openssl }:
3
4stdenv.mkDerivation rec {
5 name = "libimobiledevice-1.2.0";
6
7 nativeBuildInputs = [ python2 libplist.swig pkgconfig ];
8 buildInputs = [ readline ];
9 propagatedBuildInputs = [ libusbmuxd glib libgcrypt libtasn1 libplist openssl ];
10
11 patches = [
12 ./disable_sslv3.patch
13 (fetchpatch { # CVE-2016-5104
14 url = "https://github.com/libimobiledevice/libimobiledevice/commit/df1f5c4d70d0c19ad40072f5246ca457e7f9849e.patch";
15 sha256 = "06ygb9aqcvm4v08wrldsddjgyqv5bkpq6lxzq2a1nwqp9mq4a4k1";
16 })
17 ];
18
19 postPatch = ''sed -e 's@1\.3\.21@@' -i configure'';
20 passthru.swig = libplist.swig;
21
22 src = fetchurl {
23 url = "${meta.homepage}/downloads/${name}.tar.bz2";
24 sha256 = "0dqhy4qwj30mw8pwckvjmgnj1qqrh6p8c6jknmhvylshhzh0ssvq";
25 };
26
27 meta = {
28 homepage = http://www.libimobiledevice.org;
29 description = "A software library that talks the protocols to support iPhone®, iPod Touch® and iPad® devices on Linux";
30 longDescription = ''
31 libimobiledevice is a software library that talks the protocols to support
32 iPhone®, iPod Touch® and iPad® devices on Linux. Unlike other projects, it
33 does not depend on using any existing proprietary libraries and does not
34 require jailbreaking. It allows other software to easily access the
35 device's filesystem, retrieve information about the device and it's
36 internals, backup/restore the device, manage SpringBoard® icons, manage
37 installed applications, retrieve addressbook/calendars/notes and bookmarks
38 and synchronize music and video to the device. The library is in
39 development since August 2007 with the goal to bring support for these
40 devices to the Linux Desktop.'';
41 inherit (usbmuxd.meta) platforms maintainers;
42 };
43}