54 lines
908 B
Nix
54 lines
908 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
gettext,
|
|
json_c,
|
|
icu,
|
|
fmt,
|
|
gtest,
|
|
fcitx5,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcitx5-mcbopomofo";
|
|
version = "2.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openvanilla";
|
|
repo = "fcitx5-mcbopomofo";
|
|
rev = version;
|
|
hash = "sha256-4z6kSzmtuypbT7oXBJqiOMwU6PVRH+vEBYcBWtv4fGE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
gettext
|
|
json_c
|
|
icu
|
|
fmt
|
|
gtest
|
|
];
|
|
|
|
buildInputs = [
|
|
fcitx5
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "McBopomofo for fcitx5";
|
|
homepage = "https://github.com/openvanilla/fcitx5-mcbopomofo";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ shiphan ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|