587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
82 lines
2.3 KiB
Nix
82 lines
2.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, openssl
|
|
, libgcrypt
|
|
, libplist
|
|
, libtasn1
|
|
, libusbmuxd
|
|
, libimobiledevice-glue
|
|
, SystemConfiguration
|
|
, CoreFoundation
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libimobiledevice";
|
|
version = "1.3.0+date=2023-04-30";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libimobiledevice";
|
|
repo = pname;
|
|
rev = "860ffb707af3af94467d2ece4ad258dda957c6cd";
|
|
hash = "sha256-mIsB+EaGJlGMOpz3OLrs0nAmhOY1BwMs83saFBaejwc=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
openssl
|
|
libgcrypt
|
|
libplist
|
|
libtasn1
|
|
libusbmuxd
|
|
libimobiledevice-glue
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
SystemConfiguration
|
|
CoreFoundation
|
|
];
|
|
|
|
preAutoreconf = ''
|
|
export RELEASE_VERSION=${version}
|
|
'';
|
|
|
|
configureFlags = [ "--without-cython" ];
|
|
|
|
meta = with lib; {
|
|
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;
|
|
platforms = platforms.unix;
|
|
maintainers = [ ];
|
|
};
|
|
}
|