2016-08-11 10:04:04 +01:00
|
|
|
{ stdenv, fetchurl, cmake, fcitx, gettext, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fcitx-unikey";
|
2016-08-11 10:04:04 +01:00
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.fcitx-im.org/fcitx-unikey/${pname}-${version}.tar.xz";
|
2016-08-11 10:04:04 +01:00
|
|
|
sha256 = "063vc29v7ycaai98v3z4q319sv9sm91my17pmhblw1vifxnw02wf";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake fcitx gettext ];
|
2016-08-11 10:04:04 +01:00
|
|
|
|
2017-08-29 13:32:56 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
|
2016-08-11 10:04:04 +01:00
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace src/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
substituteInPlace data/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
isFcitxEngine = true;
|
|
|
|
homepage = "https://github.com/fcitx/fcitx-unikey";
|
|
|
|
downloadPage = "http://download.fcitx-im.org/fcitx-table-other/";
|
|
|
|
description = "Fcitx wrapper for unikey";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
|
2017-08-29 13:32:56 +01:00
|
|
|
}
|