depot/third_party/nixpkgs/pkgs/by-name/ri/rime-zhwiki/package.nix

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