fcitx5-pinyin-zhwiki: init at 0.2.5

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
Guanran928 2024-06-20 11:17:38 +08:00 committed by Guanran Wang
parent 74bc5097dd
commit df628c5b01
No known key found for this signature in database
GPG Key ID: 91F97D9ED12639CF

View File

@ -0,0 +1,33 @@
{
lib,
fetchurl,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "fcitx5-pinyin-zhwiki";
version = "0.2.5";
date = "20240509";
src = fetchurl {
url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/${finalAttrs.version}/zhwiki-${finalAttrs.date}.dict";
hash = "sha256-uRpKPq+/xJ8akKB8ol/JRF79VfDIQ8L4SxLDXzpfPxg=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/share/fcitx5/pinyin/dictionaries/zhwiki.dict
runHook postInstall
'';
meta = {
description = "Fcitx 5 pinyin dictionary from zh.wikipedia.org";
homepage = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki";
license = with lib.licenses; [ unlicense cc-by-sa-40 ];
maintainers = with lib.maintainers; [ Guanran928 ];
platforms = lib.platforms.all;
};
})