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