{
  mkDerivation,
  extra-cmake-modules, kdoctools,
  kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash,
  kdbusaddons, kdnssd, kglobalaccel, kiconthemes, kitemmodels,
  kitemviews, kcmutils, knewstuff, knotifications, knotifyconfig,
  kparts, ktextwidgets, kwidgetsaddons, kwindowsystem,
  kdelibs4support,
  grantlee, grantleetheme, qtx11extras,
  akonadi, akonadi-notes, akonadi-search, kcalutils,
  kontactinterface, libkdepim, kmime, pimcommon, kpimtextedit,
  kcalcore
}:

mkDerivation {
  name = "knotes";
  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
  buildInputs = [
    kcompletion kconfig kconfigwidgets kcoreaddons kcrash
    kdbusaddons kdnssd kglobalaccel kiconthemes kitemmodels kitemviews
    kcmutils knewstuff knotifications knotifyconfig kparts ktextwidgets
    kwidgetsaddons kwindowsystem kdelibs4support
    grantlee grantleetheme qtx11extras
    akonadi akonadi-notes kcalutils kontactinterface
    libkdepim kmime pimcommon kpimtextedit
    akonadi-search
    kcalcore
  ];
}