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

39 lines
1.2 KiB
Nix
Raw Normal View History

2017-05-10 00:24:46 +01:00
{
mkDerivation, lib, kdepimTeam,
extra-cmake-modules, shared-mime-info,
2017-06-21 14:44:44 +01:00
boost, kcompletion, kconfigwidgets, kcrash, kdbusaddons, kdesignerplugin,
ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
2017-05-10 00:24:46 +01:00
}:
mkDerivation {
name = "akonadi";
meta = {
license = [ lib.licenses.lgpl21 ];
2017-06-21 14:38:39 +01:00
maintainers = kdepimTeam;
2017-05-10 00:24:46 +01:00
};
2020-07-13 17:48:47 +01: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-10 00:24:46 +01:00
buildInputs = [
2017-06-21 14:44:44 +01:00
kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin ki18n
kiconthemes kio kwindowsystem qttools
2017-05-10 00:24:46 +01:00
];
propagatedBuildInputs = [ boost kitemmodels ];
2017-06-21 14:44:44 +01:00
outputs = [ "out" "dev" ];
2018-01-19 09:00:03 +00:00
CXXFLAGS = [
''-DNIXPKGS_MYSQL_MYSQLD=\"${lib.getBin mysql}/bin/mysqld\"''
''-DNIXPKGS_MYSQL_MYSQLADMIN=\"${lib.getBin mysql}/bin/mysqladmin\"''
''-DNIXPKGS_MYSQL_MYSQL_INSTALL_DB=\"${lib.getBin mysql}/bin/mysql_install_db\"''
''-DNIXPKGS_MYSQL_MYSQLCHECK=\"${lib.getBin mysql}/bin/mysqlcheck\"''
''-DNIXPKGS_POSTGRES_PG_CTL=\"\"''
''-DNIXPKGS_POSTGRES_PG_UPGRADE=\"\"''
2018-01-19 09:00:03 +00:00
''-DNIXPKGS_POSTGRES_INITDB=\"\"''
2017-05-10 00:24:46 +01:00
];
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DNIX_OUT=\"$out\""
'';
}