55 lines
906 B
Nix
55 lines
906 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";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "openvanilla";
|
||
|
repo = "fcitx5-mcbopomofo";
|
||
|
rev = version;
|
||
|
hash = "sha256-VnAE+DIDEYAfHnHS/ufwohkUgmgjNyrCyJlA2g1p2aY=";
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|