Unverified Commit 398f660b authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

fcitx5-mcbopomofo: init at 2.7 (#348712)

parents 7af3b3f2 9f766d18
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19745,6 +19745,12 @@
    github = "shikanime";
    githubId = 22115108;
  };
  shiphan = {
    email = "timlin940511@gmail.com";
    name = "Shiphan";
    github = "Shiphan";
    githubId = 140245703;
  };
  shiryel = {
    email = "contact@shiryel.com";
    name = "Shiryel";
+54 −0
Original line number Diff line number Diff line
{
  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;
  };
}