nixpkgs/pkgs/applications/kde/akonadi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.9 KiB
Nix
Raw Normal View History

2017-05-09 23:24:46 +00:00
{
2021-04-25 13:05:06 +00:00
mkDerivation, lib, kdepimTeam, substituteAll,
extra-cmake-modules, shared-mime-info, qtbase, accounts-qt,
boost, kaccounts-integration, kcompletion, kconfigwidgets, kcrash, kdbusaddons,
2021-03-14 16:11:57 +00:00
kdesignerplugin, ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mariadb, qttools,
2021-03-14 18:12:53 +00:00
signond, xz,
2017-05-09 23:24:46 +00:00
}:
mkDerivation {
2020-12-24 23:05:07 +00:00
pname = "akonadi";
2017-05-09 23:24:46 +00:00
meta = {
license = [ lib.licenses.lgpl21 ];
2017-06-21 13:38:39 +00:00
maintainers = kdepimTeam;
2020-11-18 15:11:55 +00:00
broken = lib.versionOlder qtbase.version "5.13";
2017-05-09 23:24:46 +00:00
};
2020-07-13 16:48:47 +00:00
patches = [
./0001-akonadi-paths.patch
./0002-akonadi-timestamps.patch
./0003-akonadi-revert-make-relocatable.patch
];
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
2017-05-09 23:24:46 +00:00
buildInputs = [
kaccounts-integration kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin
2021-03-14 18:12:53 +00:00
ki18n kiconthemes kio kwindowsystem xz accounts-qt qttools signond
2017-05-09 23:24:46 +00:00
];
propagatedBuildInputs = [ boost kitemmodels ];
2017-06-21 13:44:44 +00:00
outputs = [ "out" "dev" ];
2018-01-19 09:00:03 +00:00
CXXFLAGS = [
2021-03-14 16:11:57 +00:00
''-DNIXPKGS_MYSQL_MYSQLD=\"${lib.getBin mariadb}/bin/mysqld\"''
''-DNIXPKGS_MYSQL_MYSQLADMIN=\"${lib.getBin mariadb}/bin/mysqladmin\"''
''-DNIXPKGS_MYSQL_MYSQL_INSTALL_DB=\"${lib.getBin mariadb}/bin/mysql_install_db\"''
''-DNIXPKGS_MYSQL_MYSQLCHECK=\"${lib.getBin mariadb}/bin/mysqlcheck\"''
2018-01-19 09:00:03 +00:00
''-DNIXPKGS_POSTGRES_PG_CTL=\"\"''
''-DNIXPKGS_POSTGRES_PG_UPGRADE=\"\"''
2018-01-19 09:00:03 +00:00
''-DNIXPKGS_POSTGRES_INITDB=\"\"''
2021-04-27 21:36:43 +00:00
''-DNIX_OUT=\"${placeholder "out"}\"''
2021-04-29 10:52:22 +00:00
''-I${lib.getDev kio}/include/KF5'' # Fixes: kio_version.h: No such file or directory
2017-05-09 23:24:46 +00:00
];
# compatibility symlinks for kmymoney, can probably be removed in next kde bump
postInstall = ''
ln -s $dev/include/KF5/AkonadiCore/Akonadi/Collection $dev/include/KF5/AkonadiCore/Collection
ln -s $dev/include/KF5/AkonadiCore/Akonadi/ItemFetchScope $dev/include/KF5/AkonadiCore/ItemFetchScope
ln -s $dev/include/KF5/AkonadiCore/Akonadi/RecursiveItemFetchJob $dev/include/KF5/AkonadiCore/RecursiveItemFetchJob
'';
2017-05-09 23:24:46 +00:00
}