nixpkgs/pkgs/by-name/ri/rime-zhwiki/package.nix
2024-11-10 07:36:45 -08:00

34 lines
799 B
Nix

{
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
];
};
}