2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, fcitx, gettext, pkg-config }:
|
2016-08-11 09:04:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fcitx-unikey";
|
2016-08-11 09:04:04 +00:00
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://download.fcitx-im.org/fcitx-unikey/${pname}-${version}.tar.xz";
|
2016-08-11 09:04:04 +00:00
|
|
|
sha256 = "063vc29v7ycaai98v3z4q319sv9sm91my17pmhblw1vifxnw02wf";
|
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ fcitx gettext ];
|
2016-08-11 09:04:04 +00:00
|
|
|
|
2017-08-29 12:32:56 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
|
2016-08-11 09:04:04 +00:00
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace src/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
substituteInPlace data/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
'';
|
2020-12-31 07:48:55 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-11 09:04:04 +00:00
|
|
|
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 12:32:56 +00:00
|
|
|
}
|