{
  mkDerivation, lib, kdepimTeam,
  extra-cmake-modules, kdoctools,
  qtwebengine,
  kcmutils, kcrash, kdbusaddons, kparts, kwindowsystem,
  akonadi, grantleetheme, kontactinterface, kpimtextedit,
  mailcommon, libkdepim, pimcommon,
  akregator, kaddressbook, kmail, knotes, korganizer, zanshin
}:

mkDerivation {
  pname = "kontact";
  meta = {
    homepage = "https://apps.kde.org/kontact/";
    description = "Personal information manager";
    mainProgram = "kontact";
    license = with lib.licenses; [ gpl2Plus lgpl21Plus fdl12Plus ];
    maintainers = kdepimTeam;
  };
  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
  buildInputs = [
    qtwebengine
    kcmutils kcrash kdbusaddons kparts kwindowsystem
    akonadi grantleetheme kontactinterface kpimtextedit
    mailcommon libkdepim pimcommon
    akregator kaddressbook kmail knotes korganizer zanshin
  ];
}
