depot/third_party/nixpkgs/pkgs/by-name/fc/fcitx5-mcbopomofo/package.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

54 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;
};
}