mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
40 lines
1.3 KiB
Nix
40 lines
1.3 KiB
Nix
{
|
|
mkDerivation, lib, kdepimTeam,
|
|
extra-cmake-modules, shared-mime-info, qtbase,
|
|
boost, kcompletion, kconfigwidgets, kcrash, kdbusaddons, kdesignerplugin,
|
|
ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "akonadi";
|
|
meta = {
|
|
license = [ lib.licenses.lgpl21 ];
|
|
maintainers = kdepimTeam;
|
|
broken = lib.versionOlder qtbase.version "5.13";
|
|
};
|
|
patches = [
|
|
./0001-akonadi-paths.patch
|
|
./0002-akonadi-timestamps.patch
|
|
./0003-akonadi-revert-make-relocatable.patch
|
|
];
|
|
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
|
|
buildInputs = [
|
|
kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin ki18n
|
|
kiconthemes kio kwindowsystem qttools
|
|
];
|
|
propagatedBuildInputs = [ boost kitemmodels ];
|
|
outputs = [ "out" "dev" ];
|
|
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=\"\"''
|
|
''-DNIXPKGS_POSTGRES_INITDB=\"\"''
|
|
];
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIX_OUT=\"$out\""
|
|
'';
|
|
}
|