diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 723f7611268bc..086e8672d4167 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19569,6 +19569,12 @@ github = "shikanime"; githubId = 22115108; }; + shiphan = { + email = "timlin940511@gmail.com"; + name = "Shiphan"; + github = "Shiphan"; + githubId = 140245703; + }; shiryel = { email = "contact@shiryel.com"; name = "Shiryel"; diff --git a/pkgs/by-name/fc/fcitx5-mcbopomofo/package.nix b/pkgs/by-name/fc/fcitx5-mcbopomofo/package.nix new file mode 100644 index 0000000000000..59df795afaf82 --- /dev/null +++ b/pkgs/by-name/fc/fcitx5-mcbopomofo/package.nix @@ -0,0 +1,54 @@ +{ + 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.7"; + + src = fetchFromGitHub { + owner = "openvanilla"; + repo = "fcitx5-mcbopomofo"; + rev = version; + hash = "sha256-7AuH/Ns5syMmcGeIPxi0KepMn2VzOnqopqKuQ2zxucc="; + }; + + 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; + }; +}