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