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

34 lines
1.2 KiB
Nix
Raw Normal View History

2017-05-10 01:24:46 +02:00
{
2017-06-21 15:38:39 +02:00
mkDerivation, copyPathsToStore, lib, kdepimTeam,
2017-06-21 15:44:44 +02:00
extra-cmake-modules, shared_mime_info,
boost, kcompletion, kconfigwidgets, kcrash, kdbusaddons, kdesignerplugin,
ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
2017-05-10 01:24:46 +02:00
}:
mkDerivation {
name = "akonadi";
meta = {
license = [ lib.licenses.lgpl21 ];
2017-06-21 15:38:39 +02:00
maintainers = kdepimTeam;
2017-05-10 01:24:46 +02:00
};
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
2017-06-21 15:44:44 +02:00
nativeBuildInputs = [ extra-cmake-modules shared_mime_info ];
2017-05-10 01:24:46 +02:00
buildInputs = [
2017-06-21 15:44:44 +02:00
kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin ki18n
kiconthemes kio kwindowsystem qttools
2017-05-10 01:24:46 +02:00
];
propagatedBuildInputs = [ boost kitemmodels ];
2017-06-21 15:44:44 +02:00
outputs = [ "out" "dev" ];
2017-05-10 01:24:46 +02:00
NIX_CFLAGS_COMPILE = [
''-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_INITDB=""''
];
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DNIX_OUT=\"$out\""
'';
}