{ mkDerivation
, lib
, extra-cmake-modules
, kdoctools
, qtmultimedia
, qtquickcontrols2
, qtwebsockets
, kconfig
, kcmutils
, kcrash
, kdeclarative
, kfilemetadata
, kinit
, kirigami2
, baloo
, libvlc
}:

mkDerivation {
  pname = "elisa";

  outputs = [ "out" "dev" ];

  buildInputs = [ libvlc ];

  nativeBuildInputs = [ extra-cmake-modules kdoctools ];

  propagatedBuildInputs = [
    baloo
    kcmutils
    kconfig
    kcrash
    kdeclarative
    kfilemetadata
    kinit
    kirigami2
    qtmultimedia
    qtquickcontrols2
    qtwebsockets
  ];

  meta = with lib; {
    homepage = "https://apps.kde.org/elisa/";
    description = "Simple media player for KDE";
    mainProgram = "elisa";
    license = licenses.gpl3;
    maintainers = with maintainers; [ peterhoeg ];
  };
}
