nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-unikey/default.nix

35 lines
982 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, fcitx, gettext, pkg-config }:
2016-08-11 09:04:04 +00:00
stdenv.mkDerivation rec {
pname = "fcitx-unikey";
2016-08-11 09:04:04 +00:00
version = "0.2.5";
src = fetchurl {
url = "http://download.fcitx-im.org/fcitx-unikey/${pname}-${version}.tar.xz";
2016-08-11 09:04:04 +00:00
sha256 = "063vc29v7ycaai98v3z4q319sv9sm91my17pmhblw1vifxnw02wf";
};
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
'';
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
}