depot/third_party/nixpkgs/pkgs/applications/misc/maliit-keyboard/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

74 lines
1.3 KiB
Nix

{ mkDerivation
, lib
, fetchFromGitHub
, anthy
, hunspell
, libchewing
, libpinyin
, maliit-framework
, pcre
, presage
, qtfeedback
, qtmultimedia
, qtquickcontrols2
, qtgraphicaleffects
, cmake
, pkg-config
, wrapGAppsHook3
}:
mkDerivation rec {
pname = "maliit-keyboard";
version = "2.3.1";
src = fetchFromGitHub {
owner = "maliit";
repo = "keyboard";
rev = version;
sha256 = "sha256-XH3sKQuNMLgJi2aV+bnU2cflwkFIw4RYVfxzQiejCT0=";
};
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
wrapGAppsHook3
];
postInstall = ''
glib-compile-schemas "$out"/share/glib-2.0/schemas
'';
meta = with lib; {
description = "Virtual keyboard";
mainProgram = "maliit-keyboard";
homepage = "http://maliit.github.io/";
license = with licenses; [ lgpl3Only bsd3 cc-by-30 ];
maintainers = with maintainers; [ samueldr ];
};
}