libsForQt5.messagelib: add patch for compatibility with cmake 3.24

This commit is contained in:
Nick Cao 2022-08-16 21:53:50 +08:00
parent 226ff16bd6
commit d5330dddc6
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -1,12 +1,11 @@
{
mkDerivation, lib, kdepimTeam,
cmake_3_23,
extra-cmake-modules, kdoctools,
akonadi, akonadi-mime, akonadi-notes, akonadi-search, gpgme, grantlee,
grantleetheme, karchive, kcodecs, kconfig, kconfigwidgets, kcontacts,
kiconthemes, kidentitymanagement, kio, kjobwidgets, kldap,
kmailtransport, kmbox, kmime, kwindowsystem, libgravatar, libkdepim, libkleo,
pimcommon, qca-qt5, qtwebengine, syntax-highlighting
pimcommon, qca-qt5, qtwebengine, syntax-highlighting, fetchpatch
}:
mkDerivation {
@ -15,7 +14,18 @@ mkDerivation {
license = with lib.licenses; [ gpl2 lgpl21 fdl12 ];
maintainers = kdepimTeam;
};
nativeBuildInputs = [ (extra-cmake-modules.override { cmake = cmake_3_23; }) kdoctools ];
patches = [
# fix compatibility with cmake 3.24
(fetchpatch {
url = "https://invent.kde.org/pim/messagelib/-/commit/6eaef36d42bdb05f3.patch";
hash = "sha256-H0ayU81HxX5moHOQ3hDW7tg824oqK1p9atrBhuvZ8K8=";
})
(fetchpatch {
url = "https://invent.kde.org/pim/messagelib/-/commit/3edc93673f94604c2.patch";
hash = "sha256-tBFWCfttjDjyQyWnKdhVfLY6QsixzqqYuvD77GVH080=";
})
];
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
akonadi-notes akonadi-search gpgme grantlee grantleetheme karchive kcodecs
kconfig kconfigwidgets kiconthemes kio kjobwidgets kldap