2019-07-29 21:51:51 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitLab
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx
|
|
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
|
|
}:
|
2015-11-25 06:01:45 +00:00
|
|
|
|
2019-07-29 21:51:51 +01:00
|
|
|
mkDerivation rec {
|
2019-07-12 18:30:33 +01:00
|
|
|
pname = "fcitx-qt5";
|
|
|
|
version = "1.2.3";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0860v3rxsh054wkkbawvyin5mk0flp4cwfcpmcpq147lvdm5lq2i";
|
2015-11-25 06:01:45 +00:00
|
|
|
};
|
|
|
|
|
2016-07-29 14:59:01 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
|
2016-07-29 01:21:13 +01:00
|
|
|
|
2016-07-29 14:59:01 +01:00
|
|
|
buildInputs = [ fcitx qtbase ];
|
2015-11-25 06:01:45 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace platforminputcontext/cmake_install.cmake \
|
2019-07-29 21:51:51 +01:00
|
|
|
--replace ${qtbase.bin} $out
|
2017-12-29 22:19:13 +00:00
|
|
|
substituteInPlace quickphrase-editor/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
2015-11-25 06:01:45 +00:00
|
|
|
'';
|
|
|
|
|
2019-07-29 21:51:51 +01:00
|
|
|
meta = with lib; {
|
2019-07-12 18:30:33 +01:00
|
|
|
homepage = https://gitlab.com/fcitx/fcitx-qt5;
|
2015-11-25 06:01:45 +00:00
|
|
|
description = "Qt5 IM Module for Fcitx";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
}
|