anchor.diff:  { monolithic ? true # build monolithic Quassel
   , daemon ? false # build Quassel daemon
   , client ? false # build Quassel client
  -, previews ? false # enable webpage previews on hovering over URLs
   , tag ? "" # tag added to the package name
   , static ? false # link statically
   
   , stdenv, fetchurl, cmake, makeWrapper, dconf
  -, qtbase, qtscript, qtwebkit
  +, qtbase, qtscript
   , phonon, libdbusmenu, qca-qt5
   
   , withKDE ? stdenv.isLinux # enable KDE integration
  
positive.code:     ++ edf monolithic "WANT_MONO"
      ++ edf daemon "WANT_CORE"
      ++ edf client "WANT_QTCLIENT"
      ++ edf withKDE "WITH_KDE"
      ++ edf previews "WITH_WEBKIT";
  
    preFixup =
      lib.optionalString buildClient ''
  
negative.code:        [ cmake makeWrapper qtbase ]
      ++ lib.optionals buildCore [qtscript qca-qt5]
      ++ lib.optionals buildClient [libdbusmenu phonon]
      ++ lib.optionals (buildClient && withKDE) [
        extra-cmake-modules kconfigwidgets kcoreaddons
        knotifications knotifyconfig ktextwidgets kwidgetsaddons
  