2021-06-06 07:54:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, gnutls
|
|
|
|
, libgcrypt
|
|
|
|
, libplist
|
2022-06-16 17:23:12 +00:00
|
|
|
, libtasn1
|
2021-06-06 07:54:09 +00:00
|
|
|
, libusbmuxd
|
2022-06-16 17:23:12 +00:00
|
|
|
, libimobiledevice-glue
|
|
|
|
, SystemConfiguration
|
|
|
|
, CoreFoundation
|
2021-06-06 07:54:09 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libimobiledevice";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.3.0+date=2022-05-22";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-06-16 17:23:12 +00:00
|
|
|
owner = "libimobiledevice";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "12394bc7be588be83c352d7441102072a89dd193";
|
|
|
|
hash = "sha256-2K4gZrFnE4hlGlthcKB4n210bTK3+6NY4TYVIoghXJM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
echo '${version}' > .tarball-version
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-06-06 07:54:09 +00:00
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gnutls
|
|
|
|
libgcrypt
|
|
|
|
libplist
|
|
|
|
libtasn1
|
|
|
|
libusbmuxd
|
2022-06-16 17:23:12 +00:00
|
|
|
libimobiledevice-glue
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
SystemConfiguration
|
|
|
|
CoreFoundation
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
configureFlags = [ "--with-gnutls" "--without-cython" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/libimobiledevice/libimobiledevice";
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl21Plus;
|
2022-06-16 17:23:12 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|