2016-07-29 15:59:01 +02:00
|
|
|
{ stdenv, lib, fetchurl, cmake, fcitx, pkgconfig, qtbase, extra-cmake-modules }:
|
2015-11-25 07:01:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fcitx-qt5-${version}";
|
2017-12-29 23:19:13 +01:00
|
|
|
version = "1.2.1";
|
2015-11-25 07:01:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.fcitx-im.org/fcitx-qt5/${name}.tar.xz";
|
2017-12-29 23:19:13 +01:00
|
|
|
sha256 = "0z8ax0dxk88byic41mfaiahjdv1k8ciwn97xfjkkgr4ijgscdr8c";
|
2015-11-25 07:01:45 +01:00
|
|
|
};
|
|
|
|
|
2016-07-29 15:59:01 +02:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
|
2016-07-29 02:21:13 +02:00
|
|
|
|
2016-07-29 15:59:01 +02:00
|
|
|
buildInputs = [ fcitx qtbase ];
|
2015-11-25 07:01:45 +01:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace platforminputcontext/cmake_install.cmake \
|
2016-04-20 05:59:13 +02:00
|
|
|
--replace ${qtbase.out} $out
|
2017-12-29 23:19:13 +01:00
|
|
|
substituteInPlace quickphrase-editor/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
2015-11-25 07:01:45 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-12-29 23:19:13 +01:00
|
|
|
homepage = http://github.com/fcitx/fcitx-qt5;
|
2015-11-25 07:01:45 +01:00
|
|
|
description = "Qt5 IM Module for Fcitx";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|