2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchurl, cmake, fcitx, anthy, gettext, pkg-config }:
|
2014-08-27 02:05:14 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "fcitx-anthy";
|
2021-04-28 03:37:26 -07:00
|
|
|
version = "0.2.4";
|
2014-08-27 02:05:14 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "http://download.fcitx-im.org/fcitx-anthy/${pname}-${version}.tar.xz";
|
2021-04-28 03:37:26 -07:00
|
|
|
sha256 = "sha256-Hxhs2RXuFf/bhczcQ3+Zj+gI3+Z4BEfIzMIfUOUNX7M=";
|
2014-08-27 02:05:14 -07:00
|
|
|
};
|
|
|
|
|
2020-12-30 23:48:55 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ fcitx anthy gettext ];
|
2014-08-27 02:05:14 -07:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace src/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
'';
|
2015-11-24 22:27:25 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2015-11-24 23:29:50 -08:00
|
|
|
isFcitxEngine = true;
|
|
|
|
description = "Fcitx Wrapper for anthy";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2016-03-13 00:08:15 -08:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2015-11-24 22:27:25 -08:00
|
|
|
};
|
|
|
|
|
2014-08-27 02:05:14 -07:00
|
|
|
}
|