2021-12-06 16:07:01 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
|
|
|
|
, anthy
|
|
|
|
, hunspell
|
|
|
|
, libchewing
|
|
|
|
, libpinyin
|
|
|
|
, maliit-framework
|
|
|
|
, pcre
|
|
|
|
, presage
|
|
|
|
, qtfeedback
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
|
|
|
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "maliit-keyboard";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.3.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maliit";
|
|
|
|
repo = "keyboard";
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-XH3sKQuNMLgJi2aV+bnU2cflwkFIw4RYVfxzQiejCT0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/schemas/org.maliit.keyboard.maliit.gschema.xml \
|
|
|
|
--replace /usr/share "$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
anthy
|
|
|
|
hunspell
|
|
|
|
libchewing
|
|
|
|
libpinyin
|
|
|
|
maliit-framework
|
|
|
|
pcre
|
|
|
|
presage
|
|
|
|
qtfeedback
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas "$out"/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Virtual keyboard";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "maliit-keyboard";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "http://maliit.github.io/";
|
|
|
|
license = with licenses; [ lgpl3Only bsd3 cc-by-30 ];
|
|
|
|
maintainers = with maintainers; [ samueldr ];
|
|
|
|
};
|
|
|
|
}
|