linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / inputmethods / fcitx-engines / fcitx-anthy / default.nix
blob3fe5a59175f2e602c031e46ccd59a6ee48d68b5e
1 { lib, stdenv, fetchurl, cmake, fcitx, anthy, gettext, pkg-config }:
3 stdenv.mkDerivation rec {
4   pname = "fcitx-anthy";
5   version = "0.2.3";
7   src = fetchurl {
8     url = "http://download.fcitx-im.org/fcitx-anthy/${pname}-${version}.tar.xz";
9     sha256 = "01jx7wwq0mifqrzkswfglqhwkszbfcl4jinxgdgqx9kc6mb4k6zd";
10   };
12   nativeBuildInputs = [ cmake pkg-config ];
13   buildInputs = [ fcitx anthy gettext ];
15   preInstall = ''
16     substituteInPlace src/cmake_install.cmake \
17       --replace ${fcitx} $out
18   '';
20   meta = with lib; {
21     isFcitxEngine = true;
22     description   = "Fcitx Wrapper for anthy";
23     license       = licenses.gpl2Plus;
24     platforms     = platforms.linux;
25     maintainers   = with maintainers; [ ericsagnes ];
26   };