Unverified Commit 503b5b4c authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

rime-zhwiki: init at 20240909 (#354931)

parents 871087c1 fd214590
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{
  fetchurl,
  stdenvNoCC,
  lib,
}:
stdenvNoCC.mkDerivation {
  pname = "rime-zhwiki";
  version = "20240909";
  src = fetchurl {
    url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.5/zhwiki-20240909.dict.yaml";
    hash = "sha256-ZQ8orW7jEbPtOEvYYxdnTJGTwdXVZBEWjUMYR93vOCE=";
  };

  dontUnpack = true;
  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/rime-data
    cp $src $out/share/rime-data/zhwiki.dict.yaml

    runHook postInstall
  '';

  meta = {
    maintainers = with lib.maintainers; [ xddxdd ];
    description = "RIME dictionary file for entries from zh.wikipedia.org";
    homepage = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki";
    license = [
      lib.licenses.fdl13Plus
      lib.licenses.cc-by-sa-40
    ];
  };
}