usbmuxd2: libplist 2.3.0 compatibility

This commit is contained in:
Theodore Ni 2023-06-28 00:56:16 -07:00
parent 03f8a481b4
commit 1928cd3026
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,6 +1,7 @@
{ lib
, clangStdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, libimobiledevice
@ -16,7 +17,7 @@
owner = "tihmstar";
repo = pname;
rev = "017d71edb0a12ff4fa01a39d12cd297d8b3d8d34";
sha256 = "sha256-NrSl/BeKe3wahiYTHGRVSq3PLgQfu76kHCC5ziY7cgQ=";
hash = "sha256-NrSl/BeKe3wahiYTHGRVSq3PLgQfu76kHCC5ziY7cgQ=";
};
postPatch = ''
# Set package version so we don't require git
@ -46,6 +47,14 @@ clangStdenv.mkDerivation rec {
hash = "sha256-T9bt3KOJwFpdPeFuXfBhkBZNaNzix3Q3D47vASR+fVg=";
};
patches = [
(fetchpatch {
name = "libplist-2.3.0-compatibility.patch";
url = "https://github.com/tihmstar/usbmuxd2/commit/e527bce2360afc22c95542f1252f94c994f45c72.patch";
hash = "sha256-ig4j4z2HH8gitXxZYW9fm74Ix9XmJeX2Lz9HBCuDsuk=";
})
];
postPatch = ''
# Set package version so we don't require git
sed -i '/AC_INIT/s/m4_esyscmd.*/${version})/' configure.ac