rime-zhwiki: init at 20240909 (#354931)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user