2017-02-08 18:27:50 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python2, pkgconfig, usbmuxd, glib, libgcrypt,
|
2015-04-29 23:45:35 +01:00
|
|
|
libtasn1, libplist, readline, libusbmuxd, openssl }:
|
2010-09-26 20:40:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-29 23:45:35 +01:00
|
|
|
name = "libimobiledevice-1.2.0";
|
2010-09-26 20:40:07 +01:00
|
|
|
|
2017-02-08 18:27:50 +00:00
|
|
|
nativeBuildInputs = [ python2 libplist.swig pkgconfig ];
|
2012-01-05 23:16:00 +00:00
|
|
|
buildInputs = [ readline ];
|
2015-04-29 23:45:35 +01:00
|
|
|
propagatedBuildInputs = [ libusbmuxd glib libgcrypt libtasn1 libplist openssl ];
|
2010-09-26 20:40:07 +01:00
|
|
|
|
2016-07-10 00:49:22 +01:00
|
|
|
patches = [
|
|
|
|
./disable_sslv3.patch
|
|
|
|
(fetchpatch { # CVE-2016-5104
|
|
|
|
url = "https://github.com/libimobiledevice/libimobiledevice/commit/df1f5c4d70d0c19ad40072f5246ca457e7f9849e.patch";
|
|
|
|
sha256 = "06ygb9aqcvm4v08wrldsddjgyqv5bkpq6lxzq2a1nwqp9mq4a4k1";
|
|
|
|
})
|
|
|
|
];
|
2016-01-30 13:58:01 +00:00
|
|
|
|
|
|
|
postPatch = ''sed -e 's@1\.3\.21@@' -i configure'';
|
2012-01-05 23:16:00 +00:00
|
|
|
passthru.swig = libplist.swig;
|
2010-09-26 20:40:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/downloads/${name}.tar.bz2";
|
2015-04-29 23:45:35 +01:00
|
|
|
sha256 = "0dqhy4qwj30mw8pwckvjmgnj1qqrh6p8c6jknmhvylshhzh0ssvq";
|
2010-09-26 20:40:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.libimobiledevice.org;
|
|
|
|
description = "A software library that talks the protocols to support iPhone®, iPod Touch® and iPad® devices on Linux";
|
|
|
|
longDescription = ''
|
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
|
|
|
iPhone®, iPod Touch® and iPad® devices on Linux. Unlike other projects, it
|
|
|
|
does not depend on using any existing proprietary libraries and does not
|
|
|
|
require jailbreaking. It allows other software to easily access the
|
|
|
|
device's filesystem, retrieve information about the device and it's
|
|
|
|
internals, backup/restore the device, manage SpringBoard® icons, manage
|
|
|
|
installed applications, retrieve addressbook/calendars/notes and bookmarks
|
|
|
|
and synchronize music and video to the device. The library is in
|
|
|
|
development since August 2007 with the goal to bring support for these
|
|
|
|
devices to the Linux Desktop.'';
|
|
|
|
inherit (usbmuxd.meta) platforms maintainers;
|
|
|
|
};
|
|
|
|
}
|