{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,

  at-spi2-atk,
  at-spi2-core,
  libepoxy,
  gtk3,
  libdatrie,
  libselinux,
  libsepol,
  libthai,
  util-linux,
  wayland,
  libxtst,
  libxdmcp,

  cmake,
  doxygen,
  pkg-config,
  wayland-protocols,
  wayland-scanner,
  libsForQt5,
}:

stdenv.mkDerivation {
  pname = "maliit-framework";
  version = "2.3.0-unstable-2024-06-24";

  src = fetchFromGitHub {
    owner = "maliit";
    repo = "framework";
    rev = "ba6f7eda338a913f2c339eada3f0382e04f7dd67";
    hash = "sha256-iwWLnstQMG8F6uE5rKF6t2X43sXQuR/rIho2RN/D9jE=";
  };

  buildInputs = [
    at-spi2-atk
    at-spi2-core
    libepoxy
    gtk3
    libdatrie
    libselinux
    libsepol
    libthai
    util-linux
    wayland
    libxdmcp
    libxtst
  ];

  nativeBuildInputs = [
    cmake
    doxygen
    pkg-config
    wayland-protocols
    wayland-scanner
    libsForQt5.wrapQtAppsHook
  ];

  cmakeFlags = [
    "-DQT5_PLUGINS_INSTALL_DIR=${placeholder "out"}/${libsForQt5.qtbase.qtPluginPrefix}"
  ];

  meta = {
    description = "Core libraries of Maliit and server";
    mainProgram = "maliit-server";
    homepage = "http://maliit.github.io/";
    license = lib.licenses.lgpl21Plus;
    maintainers = [ ];
  };
}
