2021-06-06 07:54:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchpatch
|
2021-06-06 07:54:09 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
2023-07-15 17:15:38 +00:00
|
|
|
, openssl
|
2021-06-06 07:54:09 +00:00
|
|
|
, 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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.0+date=2023-04-30";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "860ffb707af3af94467d2ece4ad258dda957c6cd";
|
|
|
|
hash = "sha256-mIsB+EaGJlGMOpz3OLrs0nAmhOY1BwMs83saFBaejwc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for clang-16 and upcoming gcc-14 support:
|
|
|
|
# https://github.com/libimobiledevice/libimobiledevice/pull/1444
|
|
|
|
(fetchpatch {
|
|
|
|
name = "usleep-decl.patch";
|
|
|
|
url = "https://github.com/libimobiledevice/libimobiledevice/commit/db623184c0aa09c27697f5a2e81025db223075d5.patch";
|
|
|
|
hash = "sha256-TgdgBkEDXzQDSgJxcZc+pZncfmBVXarhHOByGFs6p0Q=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 = [
|
2023-07-15 17:15:38 +00:00
|
|
|
openssl
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preAutoreconf = ''
|
|
|
|
export RELEASE_VERSION=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--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 ];
|
|
|
|
};
|
|
|
|
}
|